Lines Matching refs:rx
35 FLOAT rx, ix; in M_DECL_FUNC() local
39 rx = M_FABS (__real__ x); in M_DECL_FUNC()
42 if (rx >= 1 / M_EPSILON || ix >= 1 / M_EPSILON) in M_DECL_FUNC()
48 __real__ y = rx; in M_DECL_FUNC()
61 else if (rx >= M_LIT (0.5) && ix < M_EPSILON / 8) in M_DECL_FUNC()
63 FLOAT s = M_HYPOT (1, rx); in M_DECL_FUNC()
65 __real__ res = M_LOG (rx + s); in M_DECL_FUNC()
71 else if (rx < M_EPSILON / 8 && ix >= M_LIT (1.5)) in M_DECL_FUNC()
77 __imag__ res = M_ATAN2 (rx, M_COPYSIGN (s, __imag__ x)); in M_DECL_FUNC()
79 __imag__ res = M_ATAN2 (s, rx); in M_DECL_FUNC()
81 else if (ix > 1 && ix < M_LIT (1.5) && rx < M_LIT (0.5)) in M_DECL_FUNC()
83 if (rx < M_EPSILON * M_EPSILON) in M_DECL_FUNC()
90 __imag__ res = M_ATAN2 (rx, M_COPYSIGN (s, __imag__ x)); in M_DECL_FUNC()
92 __imag__ res = M_ATAN2 (s, rx); in M_DECL_FUNC()
97 FLOAT rx2 = rx * rx; in M_DECL_FUNC()
103 FLOAT r2 = rx * ix / r1; in M_DECL_FUNC()
105 __real__ res = M_LOG1P (rx2 + dp + 2 * (rx * r1 + ix * r2)) / 2; in M_DECL_FUNC()
107 __imag__ res = M_ATAN2 (rx + r1, M_COPYSIGN (ix + r2, __imag__ x)); in M_DECL_FUNC()
109 __imag__ res = M_ATAN2 (ix + r2, rx + r1); in M_DECL_FUNC()
112 else if (ix == 1 && rx < M_LIT (0.5)) in M_DECL_FUNC()
114 if (rx < M_EPSILON / 8) in M_DECL_FUNC()
116 __real__ res = M_LOG1P (2 * (rx + M_SQRT (rx))) / 2; in M_DECL_FUNC()
118 __imag__ res = M_ATAN2 (M_SQRT (rx), M_COPYSIGN (1, __imag__ x)); in M_DECL_FUNC()
120 __imag__ res = M_ATAN2 (1, M_SQRT (rx)); in M_DECL_FUNC()
124 FLOAT d = rx * M_SQRT (4 + rx * rx); in M_DECL_FUNC()
125 FLOAT s1 = M_SQRT ((d + rx * rx) / 2); in M_DECL_FUNC()
126 FLOAT s2 = M_SQRT ((d - rx * rx) / 2); in M_DECL_FUNC()
128 __real__ res = M_LOG1P (rx * rx + d + 2 * (rx * s1 + s2)) / 2; in M_DECL_FUNC()
130 __imag__ res = M_ATAN2 (rx + s1, M_COPYSIGN (1 + s2, __imag__ x)); in M_DECL_FUNC()
132 __imag__ res = M_ATAN2 (1 + s2, rx + s1); in M_DECL_FUNC()
135 else if (ix < 1 && rx < M_LIT (0.5)) in M_DECL_FUNC()
139 if (rx < M_EPSILON * M_EPSILON) in M_DECL_FUNC()
144 __real__ res = M_LOG1P (2 * rx / s) / 2; in M_DECL_FUNC()
153 FLOAT rx2 = rx * rx; in M_DECL_FUNC()
159 FLOAT r2 = rx * ix / r1; in M_DECL_FUNC()
161 __real__ res = M_LOG1P (rx2 + dm + 2 * (rx * r1 + ix * r2)) / 2; in M_DECL_FUNC()
163 __imag__ res = M_ATAN2 (rx + r1, M_COPYSIGN (ix + r2, in M_DECL_FUNC()
166 __imag__ res = M_ATAN2 (ix + r2, rx + r1); in M_DECL_FUNC()
171 FLOAT s = M_HYPOT (1, rx); in M_DECL_FUNC()
173 __real__ res = M_LOG1P (2 * rx * (rx + s)) / 2; in M_DECL_FUNC()
183 __real__ y = (rx - ix) * (rx + ix) + 1; in M_DECL_FUNC()
184 __imag__ y = 2 * rx * ix; in M_DECL_FUNC()
188 __real__ y += rx; in M_DECL_FUNC()