// // LogL10fromY from 0x6d9800 to 0x6d9904 (260 bytes) // // 2 xrefs: // > LogLuv24fromXYZ @ 0x6da4f8 // > @ 0x584ec // // 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 // int __fastcall LogL10fromY(double a1, int a2) { double v4; // d6 if ( a1 >= 15.742 ) return 1023; if ( a1 <= 0.00024283 ) return 0; if ( !a2 ) return (int)((log(a1) * 1.44269504 + 12.0) * 64.0); v4 = log(a1) * 1.44269504 + 12.0; return (int)(v4 * 64.0 + (double)sub_6D7100() * 4.65661288e-10 - 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source