summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-07-03 10:12:16 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-07-03 10:12:16 -0400
commit0f19a99599ffa77a34535925a683113464095b8e (patch)
treeb29aad22f1c2416c5ea49268fc7ba06405964d1d /include
parent8cf019bb3ac6373ad9b834639f2af47afcc1316f (diff)
Remove the FLOAT_Uxx and DOUBLE_Uxx macros
Diffstat (limited to 'include')
-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 109e4e003..ab42c9da3 100644
--- a/include/gba/macro.h
+++ b/include/gba/macro.h
@@ -220,29 +220,4 @@
#define Dma3FillLarge16_(value, dest, size) Dma3FillLarge_(value, dest, size, 16)
#define Dma3FillLarge32_(value, dest, size) Dma3FillLarge_(value, dest, size, 32)
-#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