Lines Matching refs:accumulator

61 	Xsig accumulator, argSqrd, argTo4;  in poly_sine()  local
68 accumulator.lsw = accumulator.midw = accumulator.msw = 0; in poly_sine()
86 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_l, in poly_sine()
88 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
89 negate_Xsig(&accumulator); in poly_sine()
91 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_l, in poly_sine()
94 shr_Xsig(&accumulator, 2); /* Divide by four */ in poly_sine()
95 accumulator.msw |= 0x80000000; /* Add 1.0 */ in poly_sine()
97 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
98 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
99 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_sine()
105 shr_Xsig(&accumulator, exponent(st0_ptr) - exponent); in poly_sine()
107 negate_Xsig(&accumulator); in poly_sine()
108 XSIG_LL(accumulator) += significand(st0_ptr); in poly_sine()
110 echange = round_Xsig(&accumulator); in poly_sine()
139 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_h, in poly_sine()
141 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
142 negate_Xsig(&accumulator); in poly_sine()
144 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_h, in poly_sine()
146 negate_Xsig(&accumulator); in poly_sine()
148 mul64_Xsig(&accumulator, &fixed_arg); in poly_sine()
149 mul64_Xsig(&accumulator, &fixed_arg); in poly_sine()
151 shr_Xsig(&accumulator, 3); in poly_sine()
152 negate_Xsig(&accumulator); in poly_sine()
154 add_Xsig_Xsig(&accumulator, &argSqrd); in poly_sine()
156 shr_Xsig(&accumulator, 1); in poly_sine()
158 accumulator.lsw |= 1; /* A zero accumulator here would cause problems */ in poly_sine()
159 negate_Xsig(&accumulator); in poly_sine()
175 adj = accumulator.lsw; /* temp save */ in poly_sine()
176 accumulator.lsw -= fix_up; in poly_sine()
177 if (accumulator.lsw > adj) in poly_sine()
178 XSIG_LL(accumulator)--; in poly_sine()
180 echange = round_Xsig(&accumulator); in poly_sine()
185 significand(&result) = XSIG_LL(accumulator); in poly_sine()
205 Xsig accumulator, argSqrd, fix_up, argTo4; in poly_cos() local
220 accumulator.lsw = accumulator.midw = accumulator.msw = 0; in poly_cos()
241 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_h, in poly_cos()
243 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
244 negate_Xsig(&accumulator); in poly_cos()
246 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_h, in poly_cos()
248 negate_Xsig(&accumulator); in poly_cos()
250 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_cos()
251 mul64_Xsig(&accumulator, &significand(st0_ptr)); in poly_cos()
252 shr_Xsig(&accumulator, -2 * (1 + exponent)); in poly_cos()
254 shr_Xsig(&accumulator, 3); in poly_cos()
255 negate_Xsig(&accumulator); in poly_cos()
257 add_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
259 shr_Xsig(&accumulator, 1); in poly_cos()
263 negate_Xsig(&accumulator); in poly_cos()
265 if (accumulator.lsw & 0x80000000) in poly_cos()
266 XSIG_LL(accumulator)++; in poly_cos()
267 if (accumulator.msw == 0) { in poly_cos()
272 significand(&result) = XSIG_LL(accumulator); in poly_cos()
317 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), neg_terms_l, in poly_cos()
319 mul_Xsig_Xsig(&accumulator, &argSqrd); in poly_cos()
320 negate_Xsig(&accumulator); in poly_cos()
322 polynomial_Xsig(&accumulator, &XSIG_LL(argTo4), pos_terms_l, in poly_cos()
325 shr_Xsig(&accumulator, 2); /* Divide by four */ in poly_cos()
326 accumulator.msw |= 0x80000000; /* Add 1.0 */ in poly_cos()
328 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
329 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
330 mul64_Xsig(&accumulator, &fixed_arg); in poly_cos()
336 shr_Xsig(&accumulator, exp2 - exponent); in poly_cos()
338 negate_Xsig(&accumulator); in poly_cos()
339 XSIG_LL(accumulator) += fixed_arg; in poly_cos()
357 exp2 += norm_Xsig(&accumulator); in poly_cos()
358 shr_Xsig(&accumulator, 1); /* Prevent overflow */ in poly_cos()
362 add_Xsig_Xsig(&accumulator, &fix_up); in poly_cos()
364 echange = round_Xsig(&accumulator); in poly_cos()
367 significand(&result) = XSIG_LL(accumulator); in poly_cos()