summaryrefslogtreecommitdiff
path: root/arm9/lib/include/fx.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2020-06-18 16:43:58 -0400
committerGitHub <noreply@github.com>2020-06-18 16:43:58 -0400
commit7adff5d7193d5c77de4e8b348123f1e19ff7fb2c (patch)
treeed757ae15eb5ac5a99f093b76cb14c2a882c99ee /arm9/lib/include/fx.h
parentb4d34b46564d50e1ee4eafc7814cc00e9913552b (diff)
parent40fd18e12eb52658a93889ec33e8f5900de0985a (diff)
Merge pull request #175 from kazblox/master
Decompile math_util
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
{