MammaMiaTeam / NSMB-Code-Reference

Public reference for patching code on New Super Mario Bros DS (US)
23 stars 3 forks source link

Util: is_aligned uses modulus #6

Closed ghost closed 3 years ago

ghost commented 3 years ago

BRUH

Ed-1T commented 3 years ago

No one gonna fix this? Fine. Keep your __aeabi_uidivmod.

TheGameratorT commented 3 years ago

Do you need division.s? :>

Ed-1T commented 3 years ago

no lol :trollface:

TheGameratorT commented 3 years ago
bool is_aligned(int x)
{
    return (x & 3) == 0;
}

I will include this in my next commit.

Ed-1T commented 3 years ago

nice, that's the original code

TheGameratorT commented 3 years ago

Fixed in c21cf2c603f74bc327a50e3bb7b5bbc617852d98