29 #ifdef POK_NEEDS_LIBMATH
38 #include "math_private.h"
44 scalb(
double x,
int fn)
47 scalb(
double x,
double fn)
51 return __ieee754_scalb(x,fn);
54 z = __ieee754_scalb(x,fn);
55 if(_LIB_VERSION == _IEEE_)
return z;
56 if(!(finite(z)||isnan(z))&&finite(x)) {
57 return __kernel_standard(x,(
double)fn,32);
60 return __kernel_standard(x,(
double)fn,33);
63 if(!finite(fn)) errno = POK_ERRNO_ERANGE;