[SDK:NT] Add bit extraction helpers
Added LO/HIDWORD(), LO/HIWORD(), and LO/HIBYTE() macros
This commit is contained in:
parent
2751b0f7bb
commit
860874640e
@ -117,6 +117,15 @@ typedef ULONGLONG *PULONGLONG;
|
|||||||
#define MAXLONGLONG 0x7fffffffffffffff
|
#define MAXLONGLONG 0x7fffffffffffffff
|
||||||
#define MAXULONGLONG 0xffffffffffffffff
|
#define MAXULONGLONG 0xffffffffffffffff
|
||||||
|
|
||||||
|
#define LODWORD(x) ((ULONG)(x))
|
||||||
|
#define HIDWORD(x) ((ULONG)((x) >> 32))
|
||||||
|
|
||||||
|
#define LOWORD(x) ((USHORT)(x))
|
||||||
|
#define HIWORD(x) ((USHORT)((x) >> 16))
|
||||||
|
|
||||||
|
#define LOBYTE(x) ((UCHAR)(x))
|
||||||
|
#define HIBYTE(x) ((UCHAR)((x) >> 8))
|
||||||
|
|
||||||
//
|
//
|
||||||
// Logical/boolean value types.
|
// Logical/boolean value types.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user