diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-28 15:56:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 15:56:10 (GMT) |
commit | 598ceae876ff4a23072e59945597e945583de4ab (patch) | |
tree | a7c0c1380c40bda01c70b8bd40ba47d1b2f6d54a /Include/bitset.h | |
parent | 08d2b86a1058b733bb7f1ae2b55818dd9687d21c (diff) | |
download | cpython-598ceae876ff4a23072e59945597e945583de4ab.zip cpython-598ceae876ff4a23072e59945597e945583de4ab.tar.gz cpython-598ceae876ff4a23072e59945597e945583de4ab.tar.bz2 |
bpo-32150: Expand tabs to spaces in C files. (#4583)
Diffstat (limited to 'Include/bitset.h')
-rw-r--r-- | Include/bitset.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Include/bitset.h b/Include/bitset.h index faeb419..b22fa77 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 } |