Lines Matching refs:pg
78 svfloat64_t SV_NAME_D1 (erfc) (svfloat64_t x, const svbool_t pg) in SV_NAME_D1()
82 svfloat64_t a = svabs_x (pg, x); in SV_NAME_D1()
85 a = svmin_x (pg, a, dat->max); in SV_NAME_D1()
89 svfloat64_t z = svadd_x (pg, a, shift); in SV_NAME_D1()
95 i = svadd_x (pg, i, i); in SV_NAME_D1()
97 svfloat64_t erfcr = svld1_gather_index (pg, p, i); in SV_NAME_D1()
98 svfloat64_t scale = svld1_gather_index (pg, p + 1, i); in SV_NAME_D1()
101 svfloat64_t r = svsub_x (pg, z, shift); in SV_NAME_D1()
102 svfloat64_t d = svsub_x (pg, a, r); in SV_NAME_D1()
103 svfloat64_t d2 = svmul_x (pg, d, d); in SV_NAME_D1()
104 svfloat64_t r2 = svmul_x (pg, r, r); in SV_NAME_D1()
109 svfloat64_t twothird = svmul_x (pg, third, 2.0); in SV_NAME_D1()
110 svfloat64_t sixth = svmul_x (pg, third, 0.5); in SV_NAME_D1()
111 svfloat64_t p2 = svmls_x (pg, third, r2, twothird); in SV_NAME_D1()
112 svfloat64_t p3 = svmad_x (pg, r2, third, -0.5); in SV_NAME_D1()
113 p3 = svmul_x (pg, r, p3); in SV_NAME_D1()
114 svfloat64_t p4 = svmla_x (pg, sv_f64 (dat->p41), r2, dat->p42); in SV_NAME_D1()
115 p4 = svmls_x (pg, sv_f64 (dat->p40), r2, p4); in SV_NAME_D1()
116 svfloat64_t p5 = svmla_x (pg, sv_f64 (dat->p51), r2, dat->p52); in SV_NAME_D1()
117 p5 = svmla_x (pg, sixth, r2, p5); in SV_NAME_D1()
118 p5 = svmul_x (pg, r, p5); in SV_NAME_D1()
126 svfloat64_t p6 = svmla_x (pg, p4, p5, svmul_lane (r, qr5, 0)); in SV_NAME_D1()
128 svfloat64_t p7 = svmla_x (pg, p5, p6, svmul_lane (r, qr6, 0)); in SV_NAME_D1()
130 svfloat64_t p8 = svmla_x (pg, p6, p7, svmul_lane (r, qr7, 0)); in SV_NAME_D1()
132 svfloat64_t p9 = svmla_x (pg, p7, p8, svmul_lane (r, qr8, 0)); in SV_NAME_D1()
134 svfloat64_t p10 = svmla_x (pg, p8, p9, svmul_lane (r, qr9, 0)); in SV_NAME_D1()
137 svfloat64_t p90 = svmla_x (pg, p9, d, p10); in SV_NAME_D1()
138 svfloat64_t p78 = svmla_x (pg, p7, d, p8); in SV_NAME_D1()
139 svfloat64_t p56 = svmla_x (pg, p5, d, p6); in SV_NAME_D1()
140 svfloat64_t p34 = svmla_x (pg, p3, d, p4); in SV_NAME_D1()
141 svfloat64_t p12 = svmla_x (pg, p1, d, p2); in SV_NAME_D1()
142 svfloat64_t y = svmla_x (pg, p78, d2, p90); in SV_NAME_D1()
143 y = svmla_x (pg, p56, d2, y); in SV_NAME_D1()
144 y = svmla_x (pg, p34, d2, y); in SV_NAME_D1()
145 y = svmla_x (pg, p12, d2, y); in SV_NAME_D1()
147 y = svmls_x (pg, erfcr, scale, svmls_x (pg, d, d2, y)); in SV_NAME_D1()
150 svuint64_t sign = svand_x (pg, svreinterpret_u64 (x), 0x8000000000000000); in SV_NAME_D1()
151 svfloat64_t off = svreinterpret_f64 (svlsr_x (pg, sign, 1)); in SV_NAME_D1()
153 svfloat64_t fac = svreinterpret_f64 (svorr_x (pg, sign, dat->table_scale)); in SV_NAME_D1()
155 return svmla_x (pg, off, fac, y); in SV_NAME_D1()