32 #ifdef POK_NEEDS_LIBMATH
35 #include "math_private.h"
39 __ieee754_scalbf(
float x,
int fn)
42 __ieee754_scalbf(
float x,
float fn)
48 if (isnanf(x)||isnanf(fn))
return x*fn;
50 if(fn>(
float)0.0)
return x*fn;
53 if (rintf(fn)!=fn)
return (fn-fn)/(fn-fn);
54 if ( fn > (
float)65000.0)
return scalbnf(x, 65000);
55 if (-fn > (
float)65000.0)
return scalbnf(x,-65000);
56 return scalbnf(x,(
int)fn);