summaryrefslogtreecommitdiff
path: root/src/libultra_boot_O2/_Ldtob.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2021-11-26 23:37:33 +0100
committerGitHub <noreply@github.com>2021-11-26 17:37:33 -0500
commit6efb59069962abeeaa2ebf1d959cd344ed2aacb9 (patch)
tree3738ef704bbf4025ef923aa66a8bb29d2883af81 /src/libultra_boot_O2/_Ldtob.c
parentc36decaf50c2deaf5010edbf73de8e0e3d725d48 (diff)
Various minor cleanups (#1029)
* Fix some disp usage in EffectSsGMagma2 * Fix some incorrect SAC flags * Remove some instances where bool was used * Fix a few line numbers to be decimal * Remove MatrixInternal and use Mtx instead * Fix gs flag names to be plural for consistency * Fix some hex numbers to be uppercase * Fix instances of 0X for hex numbers
Diffstat (limited to 'src/libultra_boot_O2/_Ldtob.c')
-rw-r--r--src/libultra_boot_O2/_Ldtob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libultra_boot_O2/_Ldtob.c b/src/libultra_boot_O2/_Ldtob.c
index f7a6d1208..cc518a44b 100644
--- a/src/libultra_boot_O2/_Ldtob.c
+++ b/src/libultra_boot_O2/_Ldtob.c
@@ -9,13 +9,13 @@ const f64 D_800122E0[] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 1
/* float properties */
#define _D0 0
-#define _DBIAS 0x3ff
+#define _DBIAS 0x3FF
#define _DLONG 1
#define _DOFF 4
-#define _FBIAS 0x7e
+#define _FBIAS 0x7E
#define _FOFF 7
#define _FRND 1
-#define _LBIAS 0x3ffe
+#define _LBIAS 0x3FFE
#define _LOFF 15
/* integer properties */
#define _C2 1
@@ -26,7 +26,7 @@ const f64 D_800122E0[] = { 10e0L, 10e1L, 10e3L, 10e7L, 10e15L, 10e31L, 10e63L, 1
#define INF 1
#define FINITE -1
#define _DFRAC ((1 << _DOFF) - 1)
-#define _DMASK (0x7fff & ~_DFRAC)
+#define _DMASK (0x7FFF & ~_DFRAC)
#define _DMAX ((1 << (15 - _DOFF)) - 1)
#define _DNAN (0x8000 | _DMAX << _DOFF | 1 << (_DOFF - 1))
#define _DSIGN 0x8000