//
// GJBaseGameLayer::performMathRounding from 0x865530 to 0x865564 (52 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x865730
// > GJBaseGameLayer::activateItemCompareTrigger @ 0x865788
// > GJBaseGameLayer::activateItemEditTrigger @ 0x8911e8
// > GJBaseGameLayer::activateItemEditTrigger @ 0x89127c
// > ??> @ 0x2d3c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
double GJBaseGameLayer::performMathRounding(GJBaseGameLayer *a1, double a2, int a3)
{
switch ( a3 )
{
case 2:
return floor(a2);
case 3:
return ceil(a2);
case 1:
return round(a2);
}
return a2;
}