Fix incorrect function name in fixed.hpp
This commit is contained in:
parent
6f74f94aee
commit
f0dfd29692
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user