Fix incorrect attribute placement on fixed::operator/
Function attributes should be placed in the function declaration, not definition.
This commit is contained in:
parent
61e963e525
commit
82d6d64829
@ -149,7 +149,7 @@ public:
|
|||||||
*
|
*
|
||||||
* Placed in IWRAM
|
* Placed in IWRAM
|
||||||
*/
|
*/
|
||||||
fixed operator/(fixed rhs) const;
|
GBA_IWRAM fixed operator/(fixed rhs) const;
|
||||||
fixed& operator/=(fixed rhs) {
|
fixed& operator/=(fixed rhs) {
|
||||||
*this = *this / rhs;
|
*this = *this / rhs;
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ TARGET_ARM_MODE
|
|||||||
|
|
||||||
namespace mtl {
|
namespace mtl {
|
||||||
|
|
||||||
GBA_IWRAM fixed fixed::operator/(fixed rhs) const {
|
fixed fixed::operator/(fixed rhs) const {
|
||||||
int32_t raw_result;
|
int32_t raw_result;
|
||||||
asm(
|
asm(
|
||||||
// This division implementation has two methods it can use.
|
// This division implementation has two methods it can use.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user