//pow(x,2) public static float ApproxExp2(float f) { uint param = (uint)((f + 127.0f) * 8388608.0f); return(TypeTools.asfloat(param)); }
//log2(x) public static float ApproxLog2(float param) { return((((float)TypeTools.asuint(param)) / 8388608.0f) - 127.0f); }