summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-24 14:59:35 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-24 14:59:35 -0400
commit5c965f5357c09a9eaaad029441401498e0877966 (patch)
tree2b8049c703ac29c8a0e35ec63db11f277ba850c5 /include
parent23c07589f5c515cbf16db08881142b6ae76dc5ee (diff)
Rename fixed point math routines again
Diffstat (limited to 'include')
-rw-r--r--include/math_util.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/math_util.h b/include/math_util.h
index b1243df56..29fa8f59d 100644
--- a/include/math_util.h
+++ b/include/math_util.h
@@ -9,18 +9,18 @@ typedef s16 fxn16; // Fixed-point with arbitrary precision (QN.S)
typedef s32 fx32; // Fixed-point Q24.8
// x * y
-fx16 mulfx16(fx16 x, fx16 y);
-fxn16 mulfxn16(u8 s, fxn16 x, fxn16 y);
-fx32 mulfx32(fx32 x, fx32 y);
+fx16 Q_8_8_mul(fx16 x, fx16 y);
+fxn16 Q_N_S_mul(u8 s, fxn16 x, fxn16 y);
+fx32 Q_24_8_mul(fx32 x, fx32 y);
// x / y
-fx16 divfx16(fx16 x, fx16 y);
-fxn16 divfxn16(u8 s, fxn16 x, fxn16 y);
-fx32 divfx32(fx32 x, fx32 y);
+fx16 Q_8_8_div(fx16 x, fx16 y);
+fxn16 Q_N_S_div(u8 s, fxn16 x, fxn16 y);
+fx32 Q_24_8_div(fx32 x, fx32 y);
// 1.0 / y
-fx16 invfx16(fx16 y);
-fxn16 invfxn16(u8 s, fxn16 y);
-fx32 invfx32(fx32 y);
+fx16 Q_8_8_inv(fx16 y);
+fxn16 Q_N_S_inv(u8 s, fxn16 y);
+fx32 Q_24_8_inv(fx32 y);
#endif //GUARD_MATH_UTIL_H