//
// GJBaseGameLayer::performMathRounding from 0x9a7e54 to 0x9a7e88 (52 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x9a8054
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x9a80ac
// > GJBaseGameLayer::activateItemEditTrigger @ 0x9eccc0
// > GJBaseGameLayer::activateItemEditTrigger @ 0x9ecd54
// > ??> @ 0x44338
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:10 +0000
//
double __fastcall GJBaseGameLayer::performMathRounding(GJBaseGameLayer *this, double result, int a3)
{
switch ( a3 )
{
case 2:
return floor(result);
case 3:
return ceil(result);
case 1:
return round(result);
}
return result;
}