Lines Matching refs:mode
43 do_round_int(double value, int mode) in do_round_int() argument
45 switch (mode) { in do_round_int()
70 do_roundf_int(float value, int mode) in do_roundf_int() argument
72 switch (mode) { in do_roundf_int()
151 check(int mode, char *name, double value) in check() argument
155 (void) mode; in check()
161 want = do_round_int(value, mode); in check()
162 if (fesetround(mode) != 0) { in check()
173 if (fegetround() != mode) { in check()
183 want = do_round_int(-value, mode); in check()
184 if (fesetround(mode) != 0) { in check()
198 wantf = do_roundf_int(valuef, mode); in check()
199 if (fesetround(mode) != 0) { in check()
210 if (fegetround() != mode) { in check()
220 wantf = do_roundf_int(-valuef, mode); in check()
221 if (fesetround(mode) != 0) { in check()
303 #define check_sqrt(mode, param, expect) do { \ in main() argument
304 fesetround(mode); \ in main()
307 printf("testing sqrt %s for value %a\n", #mode, __p); \ in main()
310 printf("ERROR %s: sqrt(%a) got %a expect %a\n", #mode, __p, __r, __e); \ in main()
347 #define check_sqrtf(mode, param, expect) do { \ in main() argument
348 fesetround(mode); \ in main()
351 printf("testing sqrtf %s for value %a\n", #mode, (double) __p); \ in main()
354 …printf("ERROR %s: sqrtf(%a) got %a expect %a\n", #mode, (double) __p, (double) __r, (double) __e);… in main()