Home | History | Annotate | Download | only in tests

Lines Matching refs:MPFR_RNDN

106   mpfr_set_str (y, "FEDCBA987654321p-64", 16, MPFR_RNDN);
107 mpfr_pow_ui (x, y, 42, MPFR_RNDN);
108 check (r, x, y, MPFR_RNDN);
111 mpfr_set_ui_2exp (x, 64723, -19, MPFR_RNDN);
112 mpfr_mul (x, x, y, MPFR_RNDN);
113 check (r, x, y, MPFR_RNDN);
116 mpfr_set_ui (x, 123798, MPFR_RNDN);
117 mpfr_set_ui (y, 10, MPFR_RNDN);
118 check (r, x, y, MPFR_RNDN);
144 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
146 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
149 mpfr_set_ui (y, 0, MPFR_RNDN);
150 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
152 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
155 mpfr_set_ui (x, 1, MPFR_RNDN);
156 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
158 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
161 mpfr_set_ui (x, 0, MPFR_RNDN);
162 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
164 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
168 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
170 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
174 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
176 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
179 mpfr_neg (x, x, MPFR_RNDN);
180 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
182 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
185 mpfr_set_ui (y, +1, MPFR_RNDN);
186 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
188 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
191 mpfr_neg (x, x, MPFR_RNDN);
192 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
194 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
198 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
200 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
203 mpfr_neg (x, x, MPFR_RNDN);
204 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
206 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
209 mpfr_neg (y, y, MPFR_RNDN);
210 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
212 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
215 mpfr_neg (x, x, MPFR_RNDN);
216 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
218 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
221 mpfr_set_ui (x, 1, MPFR_RNDN);
222 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
224 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
225 mpfr_neg (x, x, MPFR_RNDN);
226 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
228 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
231 mpfr_set_ui (x, 0, MPFR_RNDN);
232 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
234 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
237 mpfr_neg (x, x, MPFR_RNDN);
238 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
240 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
244 mpfr_set_ui (x, 1, MPFR_RNDN);
245 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
247 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
248 mpfr_neg (x, x, MPFR_RNDN);
249 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
251 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
254 mpfr_set_ui (x, 0, MPFR_RNDN);
255 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
257 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
260 mpfr_neg (x, x, MPFR_RNDN);
261 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
263 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
266 mpfr_set_ui (x, 0, MPFR_RNDN);
267 mpfr_set_ui (y, 0, MPFR_RNDN);
268 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
270 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
273 mpfr_neg (y, y, MPFR_RNDN);
274 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
276 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN);
279 mpfr_set_ui (y, 1, MPFR_RNDN);
280 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
282 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
285 mpfr_neg (y, y, MPFR_RNDN);
286 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
288 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
291 mpfr_neg (x, x, MPFR_RNDN);
292 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
294 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
297 mpfr_neg (y, y, MPFR_RNDN);
298 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
300 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN);
309 mpfr_set_ui_2exp (t, 3, -5, MPFR_RNDN);
329 mpfr_set_si (x, 8, MPFR_RNDN);
330 mpfr_set_si (y, 7, MPFR_RNDN);
331 check (r, x, y, MPFR_RNDN);
336 mpfr_set_ui_2exp (x, 3, 26, MPFR_RNDN);
337 mpfr_set_si (y, (1 << 9) - 1, MPFR_RNDN);
338 check (r, x, y, MPFR_RNDN);
343 mpfr_set_str (x, "3.5", 10, MPFR_RNDN);
344 mpfr_set_str (y, "1.1", 10, MPFR_RNDN);
345 check (r, x, y, MPFR_RNDN);
350 mpfr_set_str (er, "CCCCCCCCCCCCCCCCCCCCCCCC8p-102", 16, MPFR_RNDN);
352 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
354 test_failed (er, r, 0, inexact, x, y, MPFR_RNDN);
359 mpfr_set_si (x, 20, MPFR_RNDN);
360 mpfr_set_ui_2exp (y, 1, 1, MPFR_RNDN); /* exact */
361 mpfr_sin (y, y, MPFR_RNDN);
362 check (r, x, y, MPFR_RNDN);
385 inexact = mpfr_fmod (r, x, y, MPFR_RNDN);
389 " MPFR_RNDN)%s\n", i ? "extended exponent range" : "");