Lines Matching refs:accumulator

60 	Xsig accumulator, argSqrd, argTo4;  in poly_sine()  local
67 accumulator.lsw = accumulator.midw = accumulator.msw = 0; in poly_sine()
85 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_l, in poly_sine()
87 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
88 negate_Xsig(&accumulator); in poly_sine()
90 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_l, in poly_sine()
93 shr_Xsig(&accumulator, 2); /* Divide by four */ in poly_sine()
94 accumulator.msw |= 0x80000000; /* Add 1.0 */ in poly_sine()
96 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
97 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
98 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
104 shr_Xsig(&accumulator, exponent(st0_ptr) - exponent); in poly_sine()
106 negate_Xsig(&accumulator); in poly_sine()
107 XSIG_LL(accumulator) += significand(st0_ptr); in poly_sine()
109 echange = round_Xsig(&accumulator); in poly_sine()
138 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_h, in poly_sine()
140 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
141 negate_Xsig(&accumulator); in poly_sine()
143 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_h, in poly_sine()
145 negate_Xsig(&accumulator); in poly_sine()
147 mul64_Xsig(&accumulator, &fixed_arg); in poly_sine()
148 mul64_Xsig(&accumulator, &fixed_arg); in poly_sine()
150 shr_Xsig(&accumulator, 3); in poly_sine()
151 negate_Xsig(&accumulator); in poly_sine()
153 add_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
155 shr_Xsig(&accumulator, 1); in poly_sine()
157 accumulator.lsw |= 1; /* A zero accumulator here would cause problems */ in poly_sine()
158 negate_Xsig(&accumulator); in poly_sine()
174 adj = accumulator.lsw; /* temp save */ in poly_sine()
175 accumulator.lsw -= fix_up; in poly_sine()
176 if (accumulator.lsw > adj) in poly_sine()
177 XSIG_LL(accumulator)--; in poly_sine()
179 echange = round_Xsig(&accumulator); in poly_sine()
184 significand(&result) = XSIG_LL(accumulator); in poly_sine()
204 Xsig accumulator, argSqrd, fix_up, argTo4; in poly_cos() local
219 accumulator.lsw = accumulator.midw = accumulator.msw = 0; in poly_cos()
240 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_h, in poly_cos()
242 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
243 negate_Xsig(&accumulator); in poly_cos()
245 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_h, in poly_cos()
247 negate_Xsig(&accumulator); in poly_cos()
249 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_cos()
250 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_cos()
251 shr_Xsig(&accumulator, -2 * (1 + exponent)); in poly_cos()
253 shr_Xsig(&accumulator, 3); in poly_cos()
254 negate_Xsig(&accumulator); in poly_cos()
256 add_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
258 shr_Xsig(&accumulator, 1); in poly_cos()
262 negate_Xsig(&accumulator); in poly_cos()
264 if (accumulator.lsw & 0x80000000) in poly_cos()
265 XSIG_LL(accumulator)++; in poly_cos()
266 if (accumulator.msw == 0) { in poly_cos()
271 significand(&result) = XSIG_LL(accumulator); in poly_cos()
316 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_l, in poly_cos()
318 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
319 negate_Xsig(&accumulator); in poly_cos()
321 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_l, in poly_cos()
324 shr_Xsig(&accumulator, 2); /* Divide by four */ in poly_cos()
325 accumulator.msw |= 0x80000000; /* Add 1.0 */ in poly_cos()
327 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
328 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
329 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
335 shr_Xsig(&accumulator, exp2 - exponent); in poly_cos()
337 negate_Xsig(&accumulator); in poly_cos()
338 XSIG_LL(accumulator) += fixed_arg; in poly_cos()
356 exp2 += norm_Xsig(&accumulator); in poly_cos()
357 shr_Xsig(&accumulator, 1); /* Prevent overflow */ in poly_cos()
361 add_Xsig_Xsig(&accumulator, &fix_up); in poly_cos()
363 echange = round_Xsig(&accumulator); in poly_cos()
366 significand(&result) = XSIG_LL(accumulator); in poly_cos()