/math/ |
A D | test-tgmath.c | 258 a = pow (pow (x, a), pow (c, b)); in F() 260 a = hypot (hypot (x, b), hypot (c, a)); in F() 281 a = nextdown (nextdown (a)); in F() 283 a = nextup (nextup (a)); in F() 285 a = scalb (scalb (x, a), (TYPE) (6)); in F() 289 a = fdim (fdim (x, a), fdim (c, b)); in F() 291 a = fmin (fmin (x, a), fmin (c, b)); in F() 293 a = fminmag (fminmag (x, a), fminmag (c, b)); in F() 295 a = fminimum (fminimum (x, a), fminimum (c, b)); in F() 297 a = fminimum_num (fminimum_num (x, a), fminimum_num (c, b)); in F() [all …]
|
A D | gen-fromfp-tests-inputs | 102 t 0.1 a 0:1 1:1 103 t -0.1 a 0:1 -1:1 104 t 0.25 a 0:1 1:1 105 t -0.25 a 0:1 -1:1 106 t 0.499 a 0:1 1:1 107 t -0.499 a 0:1 -1:1 172 t 1.25 a 1:1 2:2 178 t 2.25 a 2:2 3:2 184 t 3.25 a 3:2 4:3 190 t 4.25 a 4:3 5:3 [all …]
|
A D | README.libm-test | 4 The libm-test math test suite tests a number of function points of 5 math functions in the GNU C library. The following sections contain a 29 "gen-libm-test.py" to expand the templates and produce a set of test 42 driver is compiled into a single executable test program with the 45 As mentioned above, the "gen-libm-test.py" script looks for a file 87 "gen-libm-test.py" has an option to generate a pretty-printed and 107 the test macro for a function with input of type FLOAT (FLOAT is 116 - "a" for ARG_FLOAT, the argument type for narrowing functions. 128 through a pointer rather than directly. 129 - "F" for the address of a FLOAT (only as input parameter) [all …]
|
A D | tst-CMPLX2.c | 40 comparef (float a, float b) in comparef() argument 46 compare (double a, double b) in compare() argument 52 comparel (long double a, long double b) in comparel() argument 60 comparef (__real__ a, r); in comparecf() 61 comparef (__imag__ a, i); in comparecf() 67 compare (__real__ a, r); in comparec() 68 compare (__imag__ a, i); in comparec() 74 comparel (__real__ a, r); in comparecl() 75 comparel (__imag__ a, i); in comparecl() 80 TYPE a = A; \ [all …]
|
A D | divtc3.c | 36 x = ((a * ratio) + b) / denom; in __divtc3() 37 y = ((b * ratio) - a) / denom; in __divtc3() 43 x = ((b * ratio) + a) / denom; in __divtc3() 44 y = (b - (a * ratio)) / denom; in __divtc3() 53 x = copysignl (INFINITY, c) * a; in __divtc3() 56 else if ((isinf (a) || isinf (b)) in __divtc3() 59 a = copysignl (isinf (a) ? 1 : 0, a); in __divtc3() 61 x = INFINITY * (a * c + b * d); in __divtc3() 62 y = INFINITY * (b * c - a * d); in __divtc3() 69 x = 0.0 * (a * c + b * d); in __divtc3() [all …]
|
A D | multc3.c | 24 __multc3 (long double a, long double b, long double c, long double d) in __multc3() argument 28 ac = a * c; in __multc3() 30 ad = a * d; in __multc3() 40 if (isinf (a) || isinf (b)) in __multc3() 44 a = copysignl (isinf (a) ? 1 : 0, a); in __multc3() 56 if (isnan (a)) a = copysignl (0, a); in __multc3() 65 if (isnan (a)) a = copysignl (0, a); in __multc3() 73 x = INFINITY * (a * c - b * d); in __multc3() 74 y = INFINITY * (a * d + b * c); in __multc3()
|
A D | mul_split.h | 53 fast_two_sum (double *hi, double *lo, double a, double b) in fast_two_sum() argument 57 *hi = a + b; in fast_two_sum() 58 e = *hi - a; /* exact */ in fast_two_sum() 85 double a, b; in div_split() local 88 mul_split (&a, &b, *hi, y); in div_split() 90 a = x - a; /* huge cancellation */ in div_split() 91 a = a - b; in div_split() 93 *lo = a / y; in div_split()
|
A D | gen-tgmath-tests.py | 287 return list_product_initial([a + [b] for a in initial for b in lists[0]], 501 for a in args: 502 if a == 'c': 504 elif a == 'g': 506 elif a == 'r' or a == 's': 509 arg_name = a
|
A D | auto-libm-test-in | 4851 # a narrower format of width a and a wider format of width w, take 4858 # a = 24, w = 53. 4860 # a = 24, w = 64. 4864 # a = 53, w = 64. 6682 # (2^a + 1)(2^b + 1)/2^(a+b), where a is the width of the narrower 6686 # a = 24, b = 54 6688 # a = 24, b = 65 6690 # a = 24, b = 114 6692 # a = 53, b = 65 6694 # a = 53, b = 114 [all …]
|
A D | Makefile | 208 install-lib-ldscripts := libm.so libm.a 209 install-others = $(inst_libdir)/libm.so $(inst_libdir)/libm.a 221 $(inst_libdir)/libm-$(version).a: $(objpfx)libm.a \ 225 $(inst_libdir)/libm.a: $(common-objpfx)format.lds \ 226 $(inst_libdir)/libm-$(version).a \ 227 $(objpfx)../mathvec/libmvec.a \ 779 $(addprefix $(objpfx),$(tests-static)): $(objpfx)libm.a
|
A D | gen-libm-test.py | 346 for a in all_args_res: 347 if 'snan_value' in a: 544 test_args = [a.strip() for a in test_args]
|
A D | test-nearbyint-except-2.c | 32 volatile FLOAT a, b __attribute__ ((unused)); \ 33 a = 1.5; \ 35 b = nearbyint ## SUFFIX (a); \
|
A D | test-signgam-main.c | 36 volatile TYPE a, b, c __attribute__ ((unused)); \ 37 a = 0.5; \ 40 c = FUNC (a); \
|
A D | test-nearbyint-except.c | 40 volatile FLOAT a, b __attribute__ ((unused)); \ 41 a = 1.0; \ 44 b = nearbyint ## SUFFIX (a); \
|
A D | libm-test-driver.c | 1070 #define STR_CONCAT(a, b, c) __STRING (a##b##c) argument 1071 #define STR_CON3(a, b, c) STR_CONCAT (a, b, c) argument
|
A D | test-nan-const.c | 26 float a = nanf (buf); in do_test() local 29 return memcmp (&a, &b, sizeof (float)) == 0; in do_test()
|
A D | test-math-vector.h | 25 #define CONCAT(a, b) CNCT (a, b) argument
|
A D | libm-test-support.h | 72 #define __CONCATX(a,b) __CONCAT(a,b) argument
|
A D | gen-fromfp-tests.py | 107 a, a_width = data[4].split(':') variable 118 res, width = a, a_width
|
A D | libm-test-ceil.inc | 15 You should have received a copy of the GNU Lesser General Public 144 /* Check cases where first double is a exact integer higher than 2^52 and
|
A D | libm-test-trunc.inc | 15 You should have received a copy of the GNU Lesser General Public 161 /* Check cases where first double is a exact integer higher than 2^52 and
|
A D | libm-test-round.inc | 15 You should have received a copy of the GNU Lesser General Public 165 /* Check cases where first double is a exact integer higher than 2^52 and
|
A D | libm-test-llround.inc | 15 You should have received a copy of the GNU Lesser General Public 176 * lround to make sure that a guard bit set during the lround operation
|
A D | libm-test-lround.inc | 15 You should have received a copy of the GNU Lesser General Public 244 * lround to make sure that a guard bit set during the lround operation
|
A D | libm-test-rint.inc | 15 You should have received a copy of the GNU Lesser General Public 151 /* Check cases where first double is a exact integer higher than
|