Fix incorrect function name in fixed.hpp

This commit is contained in:
Madeline Busig 2024-03-06 23:49:40 -07:00
parent 34495b580b
commit 80bff7ca5d

View File

@ -7,7 +7,7 @@
*
* DO NOT USE DIRECTLY! Use fixed::operator* instead
*/
extern "C" int32_t fixed_mul(int32_t x, int32_t y);
extern "C" int32_t mtl_fixed_mul(int32_t x, int32_t y);
namespace mtl {
/**
@ -70,13 +70,13 @@ public:
* Uses an assembly implementation to multiply the two numbers.
* Not as quick as an integer multiplication. Use sparringly.
*
* Tested on the MGBA Gameboy Advance emulator, takes around 90
* Tested on the MGBA Gameboy Advance emulator, takes around 70
* cycles when the assembly routine is placed in IWRAM.
* The Gameboy Advance uses an armv7tdmi, and IWRAM is the fastest
* available RAM.
*/
fixed operator*(fixed rhs) const {
return fixed(fixed_mul(x, rhs.x), true);
return fixed(mtl_fixed_mul(x, rhs.x), true);
}
};