Lines Matching refs:r
33 slow_fmod (mpfr_ptr r, mpfr_srcptr x, mpfr_srcptr y, mpfr_rnd_t rnd) in slow_fmod() argument
42 MPFR_SET_NAN (r); in slow_fmod()
48 return mpfr_set (r, x, rnd); in slow_fmod()
59 inexact = mpfr_sub (r, x, q, rnd); in slow_fmod()
102 mpfr_t x, y, r; in regular() local
103 mpfr_inits (x, y, r, (mpfr_ptr) 0); in regular()
108 check (r, x, y, MPFR_RNDN); in regular()
113 check (r, x, y, MPFR_RNDN); in regular()
118 check (r, x, y, MPFR_RNDN); in regular()
123 mpfr_set_prec (r, 123); in regular()
126 check (r, x, y, MPFR_RNDD); in regular()
128 mpfr_clears (x, y, r, (mpfr_ptr) 0); in regular()
135 mpfr_t x, y, r, t; in special() local
137 mpfr_inits (x, y, r, t, (mpfr_ptr) 0); in special()
144 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
145 if (!mpfr_nan_p (r) || inexact != 0) in special()
146 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
150 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
151 if (!mpfr_nan_p (r) || inexact != 0) in special()
152 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
156 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
157 if (!mpfr_nan_p (r) || inexact != 0) in special()
158 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
162 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
163 if (!mpfr_nan_p (r) || inexact != 0) in special()
164 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
168 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
169 if (!mpfr_nan_p (r) || inexact != 0) in special()
170 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
174 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
175 if (!mpfr_nan_p (r) || inexact != 0) in special()
176 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
180 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
181 if (!mpfr_nan_p (r) || inexact != 0) in special()
182 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
186 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
187 if (!mpfr_nan_p (r) || inexact != 0) in special()
188 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
192 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
193 if (!mpfr_nan_p (r) || inexact != 0) in special()
194 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
198 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
199 if (!mpfr_nan_p (r) || inexact != 0) in special()
200 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
204 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
205 if (!mpfr_nan_p (r) || inexact != 0) in special()
206 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
210 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
211 if (!mpfr_nan_p (r) || inexact != 0) in special()
212 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
216 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
217 if (!mpfr_nan_p (r) || inexact != 0) in special()
218 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
222 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
223 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
224 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
226 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
227 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
228 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
232 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
233 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
234 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
238 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
239 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
240 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
245 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
246 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
247 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
249 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
250 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
251 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
255 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
256 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
257 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
261 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
262 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
263 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
268 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
269 if (!mpfr_nan_p (r) || inexact != 0) in special()
270 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
274 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
275 if (!mpfr_nan_p (r) || inexact != 0) in special()
276 test_failed (r, t, 0, inexact, x, y, MPFR_RNDN); in special()
280 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
281 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
282 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
286 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
287 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
288 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
292 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
293 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
294 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
298 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in special()
299 if (!mpfr_equal_p (r, x) || inexact != 0) in special()
300 test_failed (r, x, 0, inexact, x, y, MPFR_RNDN); in special()
306 mpfr_set_prec (r, 2); in special()
307 inexact = mpfr_fmod (r, x, y, MPFR_RNDA); in special()
310 if (mpfr_cmp_ui_2exp (r, 3, -5) || inexact <= 0) in special()
311 test_failed (r, t, 1, inexact, x, y, MPFR_RNDA); in special()
313 mpfr_clears (x, y, r, t, (mpfr_ptr) 0); in special()
321 mpfr_t x, y, r; in bug20090519() local
324 mpfr_inits2 (100, x, y, r, (mpfr_ptr) 0); in bug20090519()
328 mpfr_set_prec (r, 3); in bug20090519()
331 check (r, x, y, MPFR_RNDN); in bug20090519()
335 mpfr_set_prec (r, 10); in bug20090519()
338 check (r, x, y, MPFR_RNDN); in bug20090519()
342 mpfr_set_prec (r, 100); in bug20090519()
345 check (r, x, y, MPFR_RNDN); in bug20090519()
352 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in bug20090519()
353 if (!mpfr_equal_p (r, er) || inexact != 0) in bug20090519()
354 test_failed (er, r, 0, inexact, x, y, MPFR_RNDN); in bug20090519()
362 check (r, x, y, MPFR_RNDN); in bug20090519()
364 mpfr_clears (x, y, r, (mpfr_ptr) 0); in bug20090519()
370 mpfr_t x, y, r; in bug20160217() local
374 mpfr_inits2 (53, x, y, r, (mpfr_ptr) 0); in bug20160217()
385 inexact = mpfr_fmod (r, x, y, MPFR_RNDN); in bug20160217()
386 if (!mpfr_equal_p (r, x) || inexact != 0) in bug20160217()
393 mpfr_dump (r); in bug20160217()
403 mpfr_clears (x, y, r, (mpfr_ptr) 0); in bug20160217()