mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Read as an integer, a float's bits are its log2 with the mantissa a straight line between powers of two, scaled by 2^23, and writing an integer back is the matching exp2. That's exactly the GE's approximation, without log2/exp2/floor. pspPow now also returns 1 for e <= 0 itself, so the callers drop their checks. Shader languages without integers fall back to a true pow. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>