summaryrefslogtreecommitdiff
path: root/Include/bitset.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-28 17:56:10 +0200
committerGitHub <noreply@github.com>2017-11-28 17:56:10 +0200
commit598ceae876ff4a23072e59945597e945583de4ab (patch)
treea7c0c1380c40bda01c70b8bd40ba47d1b2f6d54a /Include/bitset.h
parent08d2b86a1058b733bb7f1ae2b55818dd9687d21c (diff)
downloadcpython-git-598ceae876ff4a23072e59945597e945583de4ab.tar.gz
bpo-32150: Expand tabs to spaces in C files. (#4583)
Diffstat (limited to 'Include/bitset.h')
-rw-r--r--Include/bitset.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Include/bitset.h b/Include/bitset.h
index faeb41913d..b22fa77815 100644
--- a/Include/bitset.h
+++ b/Include/bitset.h
@@ -7,7 +7,7 @@ extern "C" {
/* Bitset interface */
-#define BYTE char
+#define BYTE char
typedef BYTE *bitset;
@@ -18,13 +18,13 @@ int addbit(bitset bs, int ibit); /* Returns 0 if already set */
int samebitset(bitset bs1, bitset bs2, int nbits);
void mergebitset(bitset bs1, bitset bs2, int nbits);
-#define BITSPERBYTE (8*sizeof(BYTE))
-#define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE)
+#define BITSPERBYTE (8*sizeof(BYTE))
+#define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE)
-#define BIT2BYTE(ibit) ((ibit) / BITSPERBYTE)
-#define BIT2SHIFT(ibit) ((ibit) % BITSPERBYTE)
-#define BIT2MASK(ibit) (1 << BIT2SHIFT(ibit))
-#define BYTE2BIT(ibyte) ((ibyte) * BITSPERBYTE)
+#define BIT2BYTE(ibit) ((ibit) / BITSPERBYTE)
+#define BIT2SHIFT(ibit) ((ibit) % BITSPERBYTE)
+#define BIT2MASK(ibit) (1 << BIT2SHIFT(ibit))
+#define BYTE2BIT(ibyte) ((ibyte) * BITSPERBYTE)
#ifdef __cplusplus
}