Home
last modified time | relevance | path

Searched refs:FLOAT (Results 1 – 25 of 151) sorted by relevance

1234567

/glibc-2.36/math/
Dbasic-test.c37 #define TEST_FUNC(NAME, FLOAT, SUFFIX, EPSILON, HUGEVAL) \ argument
43 volatile FLOAT Inf_var, qNaN_var, zero_var, one_var; \
46 static volatile FLOAT sNaN_var = __builtin_nans ## SUFFIX (""); \
47 static volatile FLOAT minus_sNaN_var = -__builtin_nans ## SUFFIX (""); \
48 FLOAT x1, x2; \
63 check (#FLOAT " isinf (inf) == 1", isinf (Inf_var) == 1); \
64 check (#FLOAT " isinf (-inf) == -1", isinf (-Inf_var) == -1); \
65 check (#FLOAT " !isinf (1)", !(isinf (one_var))); \
66 check (#FLOAT " !isinf (qNaN)", !(isinf (qNaN_var))); \
67 if (SNAN_TESTS (FLOAT)) \
[all …]
Dtest-snan.c56 #define TEST_FUNC(NAME, FLOAT, SUFFIX) \ argument
62 volatile FLOAT Inf_var, qNaN_var, zero_var, one_var; \
65 static volatile FLOAT sNaN_var = __builtin_nans ## SUFFIX (""); \
66 static volatile FLOAT minus_sNaN_var = -__builtin_nans ## SUFFIX (""); \
83 CHECK (#FLOAT " issignaling (qNaN)", !issignaling (qNaN_var)); \
84 CHECK (#FLOAT " issignaling (-qNaN)", !issignaling (-qNaN_var)); \
85 CHECK (#FLOAT " issignaling (sNaN)", \
86 SNAN_TESTS (FLOAT) ? issignaling (sNaN_var) : 1); \
87 CHECK (#FLOAT " issignaling (-sNaN)", \
88 SNAN_TESTS (FLOAT) ? issignaling (minus_sNaN_var) : 1); \
[all …]
Dtest-math-vector.h36 if ((FLOAT) vec[0] != (FLOAT) vec[i]) \
38 vec[0] = (FLOAT) vec[0] + 0.1; \
55 #define WRAPPER_DECL_f(function) extern FLOAT function (FLOAT);
56 #define WRAPPER_DECL_ff(function) extern FLOAT function (FLOAT, FLOAT);
57 #define WRAPPER_DECL_fFF(function) extern void function (FLOAT, FLOAT *, FLOAT *);
62 FLOAT scalar_func (FLOAT x) \
69 return ((FLOAT) mr[0]); \
75 FLOAT scalar_func (FLOAT x, FLOAT y) \
83 return ((FLOAT) mr[0]); \
89 void scalar_func (FLOAT x, FLOAT * r, FLOAT * r1) \
[all …]
Dk_casinh_template.c35 FLOAT rx, ix; in M_DECL_FUNC()
53 FLOAT t = __real__ y; in M_DECL_FUNC()
63 FLOAT s = M_HYPOT (1, rx); in M_DECL_FUNC()
73 FLOAT s = M_SQRT ((ix + 1) * (ix - 1)); in M_DECL_FUNC()
85 FLOAT ix2m1 = (ix + 1) * (ix - 1); in M_DECL_FUNC()
86 FLOAT s = M_SQRT (ix2m1); in M_DECL_FUNC()
96 FLOAT ix2m1 = (ix + 1) * (ix - 1); in M_DECL_FUNC()
97 FLOAT rx2 = rx * rx; in M_DECL_FUNC()
98 FLOAT f = rx2 * (2 + rx2 + 2 * ix * ix); in M_DECL_FUNC()
99 FLOAT d = M_SQRT (ix2m1 * ix2m1 + f); in M_DECL_FUNC()
[all …]
Dtest-nearbyint-except.c32 #define TEST_FUNC(NAME, FLOAT, SUFFIX) \ argument
37 if (!EXCEPTION_TESTS (FLOAT)) \
40 volatile FLOAT a, b __attribute__ ((unused)); \
46 puts ("PASS: " #FLOAT); \
49 puts ("FAIL: " #FLOAT); \
53 if (SNAN_TESTS (FLOAT)) \
55 static volatile FLOAT snan = __builtin_nans ## SUFFIX (""); \
56 volatile FLOAT c __attribute__ ((unused)); \
60 puts ("PASS: " #FLOAT " sNaN"); \
63 puts ("FAIL: " #FLOAT " sNaN"); \
Dlibm-test-driver.c31 const int snan_tests_arg = SNAN_TESTS (FLOAT);
36 #define STR_FLOAT STR (FLOAT)
140 FLOAT arg;
143 FLOAT expected;
150 FLOAT arg1, arg2;
153 FLOAT expected;
163 FLOAT arg1;
167 FLOAT expected;
178 FLOAT expected;
188 FLOAT expected;
[all …]
Dlibm-test-isgreater.inc25 TEST_ff_i (isgreater, minus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (isgreater, plus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (isgreater, (FLOAT) 1, minus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (isgreater, (FLOAT) 1, plus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (isgreater, (FLOAT) 1, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (isgreater, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (isgreater, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (isgreater, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (isgreater, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (isgreater, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-isgreaterequal.inc25 TEST_ff_i (isgreaterequal, minus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (isgreaterequal, plus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (isgreaterequal, (FLOAT) 1, minus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (isgreaterequal, (FLOAT) 1, plus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (isgreaterequal, (FLOAT) 1, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (isgreaterequal, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (isgreaterequal, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (isgreaterequal, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (isgreaterequal, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (isgreaterequal, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-isless.inc25 TEST_ff_i (isless, minus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (isless, plus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (isless, (FLOAT) 1, minus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (isless, (FLOAT) 1, plus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (isless, (FLOAT) 1, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (isless, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (isless, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (isless, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (isless, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (isless, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-islessequal.inc25 TEST_ff_i (islessequal, minus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (islessequal, plus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (islessequal, (FLOAT) 1, minus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (islessequal, (FLOAT) 1, plus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (islessequal, (FLOAT) 1, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (islessequal, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (islessequal, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (islessequal, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (islessequal, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (islessequal, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-islessgreater.inc25 TEST_ff_i (islessgreater, minus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (islessgreater, plus_zero, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (islessgreater, (FLOAT) 1, minus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (islessgreater, (FLOAT) 1, plus_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (islessgreater, (FLOAT) 1, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (islessgreater, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (islessgreater, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (islessgreater, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (islessgreater, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (islessgreater, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-isunordered.inc25 TEST_ff_i (isunordered, minus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (isunordered, plus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (isunordered, (FLOAT) 1, minus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (isunordered, (FLOAT) 1, plus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (isunordered, (FLOAT) 1, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 TEST_ff_i (isunordered, (FLOAT) 1, qnan_value, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
41 TEST_ff_i (isunordered, (FLOAT) 1, -qnan_value, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
42 TEST_ff_i (isunordered, (FLOAT) 1, snan_value, 1, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
43 TEST_ff_i (isunordered, (FLOAT) 1, -snan_value, 1, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
48 TEST_ff_i (isunordered, qnan_value, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
[all …]
Dlibm-test-iseqsig.inc25 TEST_ff_i (iseqsig, minus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
32 TEST_ff_i (iseqsig, plus_zero, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
37 TEST_ff_i (iseqsig, (FLOAT) 1, minus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
38 TEST_ff_i (iseqsig, (FLOAT) 1, plus_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
39 TEST_ff_i (iseqsig, (FLOAT) 1, (FLOAT) 1, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
40 … TEST_ff_i (iseqsig, (FLOAT) 1, qnan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION|ERRNO_EDOM),
41 … TEST_ff_i (iseqsig, (FLOAT) 1, -qnan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION|ERRNO_EDOM),
42 … TEST_ff_i (iseqsig, (FLOAT) 1, snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION|ERRNO_EDOM),
43 … TEST_ff_i (iseqsig, (FLOAT) 1, -snan_value, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION|ERRNO_EDOM),
48 … TEST_ff_i (iseqsig, qnan_value, (FLOAT) 1, 0, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION|ERRNO_EDOM),
[all …]
De_scalb_template.c25 static FLOAT
27 invalid_fn (FLOAT x, FLOAT fn) in invalid_fn()
38 FLOAT
39 M_DECL_FUNC (__ieee754_scalb) (FLOAT x, FLOAT fn) in M_DECL_FUNC()
52 || (FLOAT) (int) fn != fn)) in M_DECL_FUNC()
Dlibm-test-support.c139 static FLOAT max_error, real_max_error, imag_max_error;
141 static FLOAT prev_max_error, prev_real_max_error, prev_imag_max_error;
143 static FLOAT max_valid_error;
159 FLOAT value) in fmt_ftostr()
202 static FLOAT
250 set_max_error (FLOAT current, FLOAT *curr_max_error) in set_max_error()
259 print_float (FLOAT f) in print_float()
310 print_function_ulps (const char *function_name, FLOAT ulp) in print_function_ulps()
323 print_complex_function_ulps (const char *function_name, FLOAT real_ulp, in print_complex_function_ulps()
324 FLOAT imag_ulp) in print_complex_function_ulps()
[all …]
De_exp2_template.c24 FLOAT
25 M_DECL_FUNC (__ieee754_exp2) (FLOAT x) in M_DECL_FUNC()
27 if (__glibc_likely (isless (x, (FLOAT) M_MAX_EXP))) in M_DECL_FUNC()
29 if (__builtin_expect (isgreaterequal (x, (FLOAT) (M_MIN_EXP - M_MANT_DIG in M_DECL_FUNC()
33 FLOAT fractx = x - intx; in M_DECL_FUNC()
34 FLOAT result; in M_DECL_FUNC()
Ds_fminimum_mag_template.c21 FLOAT
22 M_DECL_FUNC (__fminimum_mag) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_fmaximum_mag_template.c21 FLOAT
22 M_DECL_FUNC (__fmaximum_mag) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_fminimum_mag_num_template.c21 FLOAT
22 M_DECL_FUNC (__fminimum_mag_num) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_fmaximum_mag_num_template.c21 FLOAT
22 M_DECL_FUNC (__fmaximum_mag_num) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_fmaxmag_template.c21 FLOAT
22 M_DECL_FUNC (__fmaxmag) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_fminmag_template.c21 FLOAT
22 M_DECL_FUNC (__fminmag) (FLOAT x, FLOAT y) in M_DECL_FUNC()
24 FLOAT ax = M_FABS (x); in M_DECL_FUNC()
25 FLOAT ay = M_FABS (y); in M_DECL_FUNC()
Ds_catanh_template.c69 FLOAT h = M_HYPOT (__real__ x / 2, __imag__ x / 2); in M_DECL_FUNC()
82 FLOAT i2 = 0; in M_DECL_FUNC()
86 FLOAT num = 1 + __real__ x; in M_DECL_FUNC()
89 FLOAT den = 1 - __real__ x; in M_DECL_FUNC()
92 FLOAT f = num / den; in M_DECL_FUNC()
102 FLOAT absx, absy, den; in M_DECL_FUNC()
108 FLOAT t = absx; in M_DECL_FUNC()
Ds_clog_template.c43 FLOAT absx = M_FABS (__real__ x), absy = M_FABS (__imag__ x); in M_DECL_FUNC()
48 FLOAT t = absx; in M_DECL_FUNC()
73 FLOAT d2m1 = (absx - 1) * (absx + 1); in M_DECL_FUNC()
83 FLOAT d2m1 = (absx - 1) * (absx + 1); in M_DECL_FUNC()
91 FLOAT d2m1 = M_SUF (__x2y2m1) (absx, absy); in M_DECL_FUNC()
96 FLOAT d = M_HYPOT (absx, absy); in M_DECL_FUNC()
/glibc-2.36/sysdeps/x86/fpu/
Dtest-math-vector-sincos.h36 void scalar_func (FLOAT x, FLOAT * r, FLOAT * r1) \
39 FLOAT r_loc[VEC_LEN], r1_loc[VEC_LEN]; \
59 void scalar_func (FLOAT x, FLOAT * r, FLOAT * r1) \
62 FLOAT r_loc[VEC_LEN/2], r1_loc[VEC_LEN/2]; \
83 void scalar_func (FLOAT x, FLOAT * r, FLOAT * r1) \
86 FLOAT r_loc[VEC_LEN/4], r1_loc[VEC_LEN/4]; \

1234567