Staging
v0.5.1
https://github.com/python/cpython
Revision 61b14151cc92021a10f94765eaa152ed04eb262a authored by Batuhan Taşkaya on 12 January 2020, 22:13:31 UTC, committed by Miss Islington (bot) on 12 January 2020, 22:13:31 UTC


https://bugs.python.org/issue39313


Automerge-Triggered-By: @pablogsal
1 parent 14dbe4b
Raw File
Tip revision: 61b14151cc92021a10f94765eaa152ed04eb262a authored by Batuhan Taşkaya on 12 January 2020, 22:13:31 UTC
bpo-39313: Add an option to RefactoringTool for using exec as a function (GH-17967)
Tip revision: 61b1415
bitset.h

#ifndef Py_BITSET_H
#define Py_BITSET_H
#ifdef __cplusplus
extern "C" {
#endif

/* Bitset interface */

#define BYTE            char
typedef BYTE *bitset;

#define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0)

#define BITSPERBYTE     (8*sizeof(BYTE))
#define BIT2BYTE(ibit)  ((ibit) / BITSPERBYTE)
#define BIT2SHIFT(ibit) ((ibit) % BITSPERBYTE)
#define BIT2MASK(ibit)  (1 << BIT2SHIFT(ibit))

#ifdef __cplusplus
}
#endif
#endif /* !Py_BITSET_H */
back to top