Home
last modified time | relevance | path

Searched refs:fma (Results 1 – 25 of 117) sorted by relevance

12345

/freebsd/contrib/arm-optimized-routines/math/
H A Derf.c52 double y = fma (TwoOverSqrtPiMinusOne, x, x); in erf()
62 double r1 = fma (x2, PA[1], PA[0]); in erf()
63 double r2 = fma (x2, PA[3], PA[2]); in erf()
64 double r3 = fma (x2, PA[5], PA[4]); in erf()
65 double r4 = fma (x2, PA[7], PA[6]); in erf()
66 double r5 = fma (x2, PA[9], PA[8]); in erf()
69 r = fma (x4, r, r4); in erf()
70 r = fma (x4, r, r3); in erf()
71 r = fma (x4, r, r2); in erf()
72 r = fma (x4, r, r1); in erf()
[all …]
H A Dlog2.c56 lo = r * InvLn2lo + fma (r, InvLn2hi, -hi); in log2()
107 r = fma (z, invc, -1.0); in log2()
109 t2 = r * InvLn2lo + fma (r, InvLn2hi, -t1); in log2()
H A Dpoly_scalar_f64.h17 #define FMA fma
H A Dpow.c63 r = fma (z, invc, -1.0); in log_inline()
87 lo3 = fma (ar, r, -ar2); in log_inline()
364 elo = y * lo + fma (y, hi, -ehi); in pow()
/freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/
H A Derfc_1u8.c101 double p2 = fma (P21, r2, -P20); in erfc()
102 double p3 = -r * fma (P20, r2, -0.5); in erfc()
103 double p4 = fma (fma (P42, r2, -P41), r2, P40); in erfc()
104 double p5 = -r * fma (fma (P52, r2, -P51), r2, P50); in erfc()
107 double p6 = fma (Q5 * r, p5, p4) * R5; in erfc()
108 double p7 = fma (Q6 * r, p6, p5) * R6; in erfc()
109 double p8 = fma (Q7 * r, p7, p6) * R7; in erfc()
110 double p9 = fma (Q8 * r, p8, p7) * R8; in erfc()
111 double p10 = fma (Q9 * r, p9, p8) * R9; in erfc()
113 double p90 = fma (p10, d, p9); in erfc()
[all …]
H A Derf_2u5.c54 return fma (TwoOverSqrtPiMinusOne, x, x); in arm_math_erf()
75 double p2 = fma (TwoThird, r2, -OneThird); in arm_math_erf()
76 double p3 = -r * fma (OneThird, r2, -0.5); in arm_math_erf()
77 double p4 = fma (fma (TwoOverFifteen, r2, -TwoOverFive), r2, Tenth); in arm_math_erf()
79 = -r * fma (fma (TwoOverFortyFive, r2, -TwoOverNine), r2, Sixth); in arm_math_erf()
81 double p34 = fma (p4, d, p3); in arm_math_erf()
82 double p12 = fma (p2, d, p1); in arm_math_erf()
83 double y = fma (p5, d2, p34); in arm_math_erf()
84 y = fma (y, d2, p12); in arm_math_erf()
86 y = fma (fma (y, d2, d), scale, erfr); in arm_math_erf()
H A Dcbrt_2u.c44 double p_01 = fma (C (1), m, C (0)); in cbrt()
45 double p_23 = fma (C (3), m, C (2)); in cbrt()
46 double p = fma (p_23, m * m, p_01); in cbrt()
50 double a = fma (TwoThirds, p, m_by_3 / (p * p)); in cbrt()
51 a = fma (TwoThirds, a, m_by_3 / (a * a)); in cbrt()
H A Dexpm1_2u5.c56 double j = fma (InvLn2, x, Shift) - Shift; in expm1()
58 double f = fma (j, -Ln2hi, x); in expm1()
59 f = fma (j, -Ln2lo, f); in expm1()
68 double p = fma (f2, estrin_10_f64 (f, f2, f4, f4 * f4, __expm1_poly), f); in expm1()
76 return 2 * fma (p, t, t - 0.5); in expm1()
H A Dtanh_3u.c34 double j = fma (InvLn2, x, Shift) - Shift; in expm1_inline()
36 double f = fma (j, -Ln2hi, x); in expm1_inline()
37 f = fma (j, -Ln2lo, f); in expm1_inline()
42 double p = fma (f2, estrin_10_f64 (f, f2, f4, f4 * f4, __expm1_poly), f); in expm1_inline()
47 return fma (p, t, t - 1); in expm1_inline()
H A Dlog1p_2u.c97 return fma (x, eval_poly (x) * x, x); in log1p()
119 double p = fma (f, eval_poly (f) * f, f); in log1p()
122 double y = fma (Ln2Lo, kd, cm); in log1p()
123 return y + fma (Ln2Hi, kd, p); in log1p()
H A Dasin_3u.c79 double z2 = ax < 0.5 ? x * x : fma (-0.5, ax, 0.5); in asin()
89 p = fma (z * z2, p, z); in asin()
93 double y = ax < 0.5 ? p : fma (-2.0, p, PiOver2); in asin()
H A Dacos_2u.c72 double z2 = ax < 0.5 ? x * x : fma (-0.5, ax, 0.5); in acos()
82 p = fma (z * z2, p, z); in acos()
90 return (x <= -0.5) ? fma (-2.0, p, Pi) : 2.0 * p; in acos()
H A Datanh_3u.c48 double p = fma ( in log1p_inline()
53 double y = fma (Ln2Lo, kd, cm); in log1p_inline()
54 return y + fma (Ln2Hi, kd, p); in log1p_inline()
H A Datan_common.h23 double y = fma (estrin_11_f64 (z2, x2, x4, x8, __atan_poly_data.poly + 8), in eval_poly()
27 y = fma (y, z2 * az, az); in eval_poly()
H A Dasinh_2u5.c62 double y = fma (p, x2 * ax, ax); in asinh()
/freebsd/lib/msun/tests/
H A Dfma_test.c61 test(fma, (double)(x), (double)(y), (double)(z), \
114 test(fma, -DBL_MIN, DBL_MIN, 0.0, -0.0, in test_zeroes()
148 test(fma, DBL_MAX, DBL_MAX, -INFINITY, -INFINITY, ALL_STD_EXCEPT, 0); in test_infinities()
152 test(fma, DBL_MAX, -DBL_MAX, INFINITY, INFINITY, ALL_STD_EXCEPT, 0); in test_infinities()
169 test(fma, DBL_MIN, DBL_MIN, NAN, NAN, ALL_STD_EXCEPT, 0); in test_nans()
172 test(fma, DBL_MAX, DBL_MAX, NAN, NAN, ALL_STD_EXCEPT, 0); in test_nans()
186 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON, in test_small_z()
199 test(fma, -one, one, -0x1.0p-200, -(1.0 + DBL_EPSILON), in test_small_z()
212 test(fma, one, one, -0x1.0p-200, 1.0 - DBL_EPSILON / 2, in test_small_z()
225 test(fma, -one, one, 0x1.0p-200, -1.0 + DBL_EPSILON / 2, in test_small_z()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.cpp190 return {Intrinsic::fma, FTZ_Any}; in simplifyNvvmIntrinsic()
192 return {Intrinsic::fma, FTZ_MustBeOff}; in simplifyNvvmIntrinsic()
194 return {Intrinsic::fma, FTZ_MustBeOn}; in simplifyNvvmIntrinsic()
196 return {Intrinsic::fma, FTZ_MustBeOff, true}; in simplifyNvvmIntrinsic()
198 return {Intrinsic::fma, FTZ_MustBeOn, true}; in simplifyNvvmIntrinsic()
200 return {Intrinsic::fma, FTZ_MustBeOff, true}; in simplifyNvvmIntrinsic()
202 return {Intrinsic::fma, FTZ_MustBeOn, true}; in simplifyNvvmIntrinsic()
204 return {Intrinsic::fma, FTZ_MustBeOff, true}; in simplifyNvvmIntrinsic()
206 return {Intrinsic::fma, FTZ_MustBeOn, true}; in simplifyNvvmIntrinsic()
208 return {Intrinsic::fma, FTZ_MustBeOf in simplifyNvvmIntrinsic()
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__math/
H A Dfma.h26 inline _LIBCPP_HIDE_FROM_ABI float fma(float __x, float __y, float __z) _NOEXCEPT { in fma() function
31 _LIBCPP_HIDE_FROM_ABI double fma(double __x, double __y, double __z) _NOEXCEPT { in fma() function
35 inline _LIBCPP_HIDE_FROM_ABI long double fma(long double __x, long double __y, long double __z) _NO… in fma() function
43 inline _LIBCPP_HIDE_FROM_ABI typename __promote<_A1, _A2, _A3>::type fma(_A1 __x, _A2 __y, _A3 __z)… in fma() function
/freebsd/sys/dev/iommu/
H A Dbusdma_iommu.c702 vm_page_t *ma, fma; in iommu_bus_dmamap_load_phys() local
716 fma = NULL; in iommu_bus_dmamap_load_phys()
726 if (fma == NULL) { in iommu_bus_dmamap_load_phys()
727 fma = malloc(sizeof(struct vm_page) * ma_cnt, in iommu_bus_dmamap_load_phys()
729 if (fma == NULL) { in iommu_bus_dmamap_load_phys()
734 vm_page_initfake(&fma[i], pstart + ptoa(i), in iommu_bus_dmamap_load_phys()
736 ma[i] = &fma[i]; in iommu_bus_dmamap_load_phys()
741 free(fma, M_DEVBUF); in iommu_bus_dmamap_load_phys()
753 vm_page_t *ma, fma; in iommu_bus_dmamap_load_buffer() local
767 fma = NULL; in iommu_bus_dmamap_load_buffer()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/
H A Dsincospi_4u.c106 = asdouble (asuint64 (fma (-4 * ar2_s, ar_s, ss * ar_s)) ^ ss_sign); in arm_math_sincospi()
108 = asdouble (asuint64 (fma (-4 * ar2_c, ar_c, cc * ar_c)) ^ cc_sign); in arm_math_sincospi()
H A Dcospi_3u5.c76 y = fma (-4 * r2, r, y); in arm_math_cospi()
H A Dsinpi_3u5.c81 y = fma (-4 * r2, r, y); in arm_math_sinpi()
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h71 __DEVICE__ double fma(double, double, double);
72 __DEVICE__ float fma(float, float, float);
221 using ::fma;
H A D__clang_hip_cmath.h48 __DEVICE__ __CONSTEXPR__ float fma(float __x, float __y, float __z) { in fma() function
172 __DEVICE__ __CONSTEXPR__ _Float16 fma(_Float16 __x, _Float16 __y, in fma() function
555 fma(__T1 __x, __T2 __y, __T3 __z) {
557 return ::fma((__result_type)__x, (__result_type)__y, (__result_type)__z);
566 fma(__T1 __x, __T2 __y, __T3 __z) {
567 return ::fma((double)__x, (double)__y, (double)__z);
671 using ::fma;
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/
H A Dfinite_pow.h67 double r = fma (z, invc, -1.0); in log_inline()
81 double lo3 = fma (ar, r, -ar2); in log_inline()
359 double elo = y * lo + fma (y, hi, -ehi); in pow_scalar_special_case()

12345