summaryrefslogtreecommitdiff
path: root/arm9/lib/include/fx.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-06-18 16:44:21 -0400
committerGitHub <noreply@github.com>2020-06-18 16:44:21 -0400
commit6c4630b94fad4a2f1ed9b3a1698ed6f821c5fe51 (patch)
tree451dcaefb6c9047953545c627423208bce81b035 /arm9/lib/include/fx.h
parent343a31f8e5eeecf8f5cd2fa9ac55a961c0c19f7f (diff)
parent7adff5d7193d5c77de4e8b348123f1e19ff7fb2c (diff)
Merge branch 'master' into master
Diffstat (limited to 'arm9/lib/include/fx.h')
-rw-r--r--arm9/lib/include/fx.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arm9/lib/include/fx.h b/arm9/lib/include/fx.h
index c09b24ae..4a844872 100644
--- a/arm9/lib/include/fx.h
+++ b/arm9/lib/include/fx.h
@@ -59,8 +59,11 @@ typedef s64 fx64c;
#define FX_F32_TO_FX16(x) ((fx16)(((x) > 0) ? \
(fx16)((x) * (1 << FX16_INT_SHIFT) + 0.5f ) : \
(fx16)((x) * (1 << FX16_INT_SHIFT) - 0.5f )))
-
+#define FX_F32_TO_FX32(x) ((fx32)(((x) > 0) ? \
+ (fx32)((x) * (1 << FX32_INT_SHIFT) + 0.5f ) : \
+ (fx32)((x) * (1 << FX32_INT_SHIFT) - 0.5f )))
#define FX16_CONST(x) FX_F32_TO_FX16(x)
+#define FX32_CONST(x) FX_F32_TO_FX32(x)
struct Vecx32
{