Lines Matching refs:x
48 remainder(double x, double p) { in remainder() argument
52 ix = ((int *)&x)[HIWORD]; in remainder()
57 return (x * p); in remainder()
58 if (hx > 0x7ff00000 || (hx == 0x7ff00000 && ((int *)&x)[LOWORD] != 0)) in remainder()
59 return (x * p); in remainder()
62 return (_SVID_libm_err(x, p, 28)); in remainder()
66 x = fmod(x, p + p); in remainder()
67 x = fabs(x); in remainder()
69 if (x + x > p) { in remainder()
70 if (x == p) /* avoid x-x=-0 in RM mode */ in remainder()
72 x -= p; in remainder()
73 if (x + x >= p) in remainder()
74 x -= p; in remainder()
78 if (x > halfp) { in remainder()
79 if (x == p) /* avoid x-x=-0 in RM mode */ in remainder()
81 x -= p; in remainder()
82 if (x >= halfp) in remainder()
83 x -= p; in remainder()
86 return ((ix < 0)? -x : x); in remainder()