diff options
author | garakmon <thomastaps194@comcast.net> | 2018-07-07 21:29:11 -0400 |
---|---|---|
committer | garakmon <thomastaps194@comcast.net> | 2018-07-07 21:29:11 -0400 |
commit | 864a69f9bf050eaaa062c8346cd6a5032e617139 (patch) | |
tree | bd8b133710c813b11becf602067495526c849b6a /include/util.h | |
parent | 47bcba3e1b5140cef7f04edcda3759818408726a (diff) |
merge conflicts are soooooooooo fun
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 02c503f75..1a3bd5f1a 100644 --- a/include/util.h +++ b/include/util.h @@ -3,6 +3,12 @@ #include "sprite.h" +//Extracts the upper 16 bits of a 32-bit number +#define HIHALF(n) (((n) & 0xFFFF0000) >> 16) + +//Extracts the lower 16 bits of a 32-bit number +#define LOHALF(n) ((n) & 0xFFFF) + extern const u8 gMiscBlank_Gfx[]; extern const u32 gBitTable[]; |