//
// LogL16toY from 0xecc630 to 0xecc680 (80 bytes)
//
// 4 xrefs:
// > sub_ECC690 @ 0xecc6e4
// > sub_ECC750 @ 0xecc77c
// > LogLuv32toXYZ @ 0xecd410
// > ??> @ 0xdfe88
//
// 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 13:11:38 +0000
//
double __fastcall LogL16toY(__int16 a1)
{
double result; // d0
result = 0.0;
if ( (a1 & 0x7FFF) != 0 )
{
result = exp(((double)(a1 & 0x7FFF) + 0.5) * 0.00270760617 + -44.3614196);
if ( a1 < 0 )
return -result;
}
return result;
}