You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @18073326, Release-5.0 @18081140 and Dev-PerfTest @18045971 [CL 18081471 by aurel cordonnier in ue5-release-engine-test branch]
24 lines
468 B
C
24 lines
468 B
C
|
|
#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 */
|