summaryrefslogtreecommitdiff
path: root/include/gba/macro.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-30 19:31:29 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-30 19:31:29 -0400
commitf300f9e699c6f90c7f8da3a4e130a21f231073a0 (patch)
tree200a30a97d4d209314a9794b074b1d5d9330057e /include/gba/macro.h
parent92f17e88120b01ff57f02fe13696556419b4221c (diff)
Revert FLOAT_U* and DOUBLE_U* macros
Diffstat (limited to 'include/gba/macro.h')
-rw-r--r--include/gba/macro.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/gba/macro.h b/include/gba/macro.h
index 197febede..3b35a1946 100644
--- a/include/gba/macro.h
+++ b/include/gba/macro.h
@@ -192,29 +192,4 @@
REG_IME = imeTemp; \
} \
-#if MODERN
-#define FLOAT_UNS(x, bit) ({ \
- s##bit sx = x; \
- float fx = (float)sx; \
- if (sx < 0) fx += (1 << (bit - 1)) * 2.0f; \
- fx; \
-})
-#define DOUBLE_UNS(x, bit) ({ \
- s##bit sx = x; \
- double dx = (double)sx; \
- if (sx < 0) dx += (1 << (bit - 1)) * 2.0; \
- dx; \
-})
-#else
-#define FLOAT_UNS(x, bit) ((float)(x))
-#define DOUBLE_UNS(x, bit) ((double)(x))
-#endif //MODERN
-
-#define FLOAT_U8(x) FLOAT_UNS(x, 8)
-#define FLOAT_U16(x) FLOAT_UNS(x, 16)
-#define FLOAT_U32(x) FLOAT_UNS(x, 32)
-#define DOUBLE_U8(x) DOUBLE_UNS(x, 8)
-#define DOUBLE_U16(x) DOUBLE_UNS(x, 16)
-#define DOUBLE_U32(x) DOUBLE_UNS(x, 32)
-
#endif // GUARD_GBA_MACRO_H