Lines Matching +full:- +full:r
1 // SPDX-License-Identifier: BSD-3-Clause
27 static void gen_exp_testvector(double a, double b, double *r, int32_t *b_i);
29 /* testvector in Q4.28, -5 to +5 */
33 * double *r
37 static void gen_exp_testvector(double a, double b, double *r, int32_t *b_i) in gen_exp_testvector() argument
42 *r = a + rand() % (int32_t)(b - a + 1); in gen_exp_testvector()
43 a2 = *r * 268435456; in gen_exp_testvector()
49 *b_i = (a2 >= -2147483648LL) ? a2 : INT32_MIN; in gen_exp_testvector()
62 double a_tmp = -5.0123456789; in test_math_arithmetic_exponential_fixed()
64 double r; in test_math_arithmetic_exponential_fixed() local
69 gen_exp_testvector(a_tmp, b_tmp, &r, &b_i); in test_math_arithmetic_exponential_fixed()
72 max_ulp = fabs(exp(a_i) - (double)accum / (1 << 23)) / ULP_SCALE; in test_math_arithmetic_exponential_fixed()