mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 04:27:38 +01:00
44 lines
520 B
C
44 lines
520 B
C
|
|
// Includes
|
|
#include "global.h"
|
|
|
|
// Static type declarations
|
|
|
|
// Static RAM declarations
|
|
|
|
// Static ROM declarations
|
|
|
|
// .rodata
|
|
|
|
// .text
|
|
|
|
s16 sub_8151534(s16 x, s16 y)
|
|
{
|
|
s32 result;
|
|
|
|
result = x;
|
|
result *= y;
|
|
result /= 256;
|
|
return result;
|
|
}
|
|
|
|
s16 sub_8151550(u8 s, s16 x, s16 y)
|
|
{
|
|
s32 result;
|
|
|
|
result = x;
|
|
result *= y;
|
|
result /= (1 << s);
|
|
return result;
|
|
}
|
|
|
|
s32 sub_8151574(s32 x, s32 y)
|
|
{
|
|
s64 result;
|
|
|
|
result = x;
|
|
result *= y;
|
|
result /= 256;
|
|
return result;
|
|
}
|