Lines Matching refs:absx
86 float absx = fabsf(x); in rintf() local
88 if (absx < 8388608.0f /* 0x1.0p23f */) in rintf()
101 double absx = fabs(x); in rint() local
103 if (absx < 4503599627370496.0 /* 0x1.0p52f */) in rint()
116 double absx = fabs(x); in rintl() local
118 if (absx < 9223372036854775808.0L /* 0x1.0p64f */) in rintl()
153 cl_ulong absx = u.u & CL_LONG_MAX; in ilogb() local
154 if (absx - 0x0001000000000000ULL in ilogb()
157 switch (absx) in ilogb()
162 if (absx > 0x7ff0000000000000ULL) return FP_ILOGBNAN; in ilogb()
165 u.u = absx | 0x3ff0000000000000ULL; in ilogb()
171 return (absx >> 52) - 1023; in ilogb()
183 cl_uint absx = u.u & 0x7fffffff; in ilogbf() local
184 if (absx - 0x00800000U >= 0x7f800000U - 0x00800000U) in ilogbf()
186 switch (absx) in ilogbf()
191 if (absx > 0x7f800000) return FP_ILOGBNAN; in ilogbf()
194 u.u = absx | 0x3f800000U; in ilogbf()
200 return (absx >> 23) - 127; in ilogbf()
416 double absx = fabs(x); in trunc() local
418 if (absx < 4503599627370496.0 /* 0x1.0p52f */) in trunc()
429 float absx = fabsf(x); in truncf() local
431 if (absx < 8388608.0f /* 0x1.0p23f */) in truncf()
442 double absx = fabs(x); in lround() local
444 if (absx < 0.5) return 0; in lround()
446 if (absx < 4503599627370496.0 /* 0x1.0p52 */) in lround()
448 absx += 0.5; in lround()
449 cl_long rounded = absx; in lround()
450 absx = rounded; in lround()
451 x = copysign(absx, x); in lround()
461 float absx = fabsf(x); in lroundf() local
463 if (absx < 0.5f) return 0; in lroundf()
465 if (absx < 8388608.0f) in lroundf()
467 absx += 0.5f; in lroundf()
468 cl_int rounded = absx; in lroundf()
469 absx = rounded; in lroundf()
470 x = copysignf(absx, x); in lroundf()
480 double absx = fabs(x); in round() local
482 if (absx < 0.5) return copysign(0.0, x); in round()
484 if (absx < 4503599627370496.0 /* 0x1.0p52 */) in round()
486 absx += 0.5; in round()
487 cl_long rounded = absx; in round()
488 absx = rounded; in round()
489 x = copysign(absx, x); in round()
497 float absx = fabsf(x); in roundf() local
499 if (absx < 0.5f) return copysignf(0.0f, x); in roundf()
501 if (absx < 8388608.0f) in roundf()
503 absx += 0.5f; in roundf()
504 cl_int rounded = absx; in roundf()
505 absx = rounded; in roundf()
506 x = copysignf(absx, x); in roundf()
514 long double absx = fabsl(x); in roundl() local
516 if (absx < 0.5L) return copysignl(0.0L, x); in roundl()
518 if (absx < 9223372036854775808.0L /*0x1.0p63L*/) in roundl()
520 absx += 0.5L; in roundl()
521 cl_ulong rounded = absx; in roundl()
522 absx = rounded; in roundl()
523 x = copysignl(absx, x); in roundl()
539 double absx = fabs(x); in lrint() local
543 if (absx < 4503599627370496.0 /* 0x1.0p52 */) in lrint()
556 float absx = fabsf(x); in lrintf() local
560 if (absx < 8388608.0f /* 0x1.0p23f */) in lrintf()