diff options
author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-06-18 23:49:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 23:49:03 +0300 |
commit | e3077928198b2f51854812bcd04e1ebe1e6112f5 (patch) | |
tree | 116d9965f2e4fee2fa4e9b51e5a0c82fea49acb0 /arm9/lib/include/fx.h | |
parent | e4dde9edf85100353b5fa6fb9b757eaa43e2de42 (diff) | |
parent | 83924f933797f36776a10a15ce87c85cc4dfcddf (diff) |
Merge branch 'master' into master
Diffstat (limited to 'arm9/lib/include/fx.h')
-rw-r--r-- | arm9/lib/include/fx.h | 5 |
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 { |