// // __floatditf from 0xe895b4 to 0xe89640 (140 bytes) // // 3 xrefs: // > _TIFFUInt64ToFloat @ 0xc2ce8c // > _TIFFUInt64ToDouble @ 0xc2cedc // > @ 0xb1930 // // 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 // __n128 __fastcall _floatditf(signed __int64 a1) { bool v1; // w5 int v2; // w2 __int16 v3; // w4 unsigned __int64 v4; // x1 unsigned __int64 v5; // x0 __n128 result; // q0 if ( a1 ) { v1 = a1 < 0; if ( a1 < 0 ) a1 = -a1; v2 = 16446 - __clz(a1); v3 = v2; if ( 16495LL - v2 > 63 ) { v4 = a1 << (47 - (unsigned __int8)v2); v5 = 0; } else { v4 = (unsigned __int64)a1 >> ((unsigned __int8)v2 - 47); v5 = a1 << (111 - (unsigned __int8)v2); } } else { v4 = 0; v5 = 0; v3 = 0; v1 = 0; } result.n128_u64[0] = v5; result.n128_u64[1] = v4 & 0xFFFFFFFFFFFFLL | ((unsigned __int64)(v3 & 0x7FFF) << 48) & 0x7FFFFFFFFFFFFFFFLL | ((unsigned __int64)v1 << 63); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source