tag | line | file | source code |
accum | 92 | kernel/FPU-emu/fpu_emu.h | extern void polynomial(unsigned accum[], unsigned x[], |
accum | 44 | kernel/FPU-emu/poly_2xm1.c | FPU_REG accum; |
accum | 83 | kernel/FPU-emu/poly_2xm1.c | *(short *)&(accum.sign) = 0; /* will be a valid positive nr with expon = 0 */ |
accum | 84 | kernel/FPU-emu/poly_2xm1.c | accum.exp = 0; |
accum | 87 | kernel/FPU-emu/poly_2xm1.c | polynomial((unsigned *)&accum.sigl, (unsigned *)&Xll, lterms, HIPOWER-1); |
accum | 90 | kernel/FPU-emu/poly_2xm1.c | accum.exp += EXP_BIAS - 1; |
accum | 92 | kernel/FPU-emu/poly_2xm1.c | reg_move(&accum, result); |
accum | 49 | kernel/FPU-emu/poly_l2.c | FPU_REG accum, denom, num, Xx; |
accum | 54 | kernel/FPU-emu/poly_l2.c | accum.tag = TW_Valid; /* set the tags to Valid */ |
accum | 63 | kernel/FPU-emu/poly_l2.c | accum.sign = 1; /* sign to negative */ |
accum | 69 | kernel/FPU-emu/poly_l2.c | accum.sign = 0; /* set the sign to positive */ |
accum | 91 | kernel/FPU-emu/poly_l2.c | accum.exp = -1; /* exponent of accum */ |
accum | 94 | kernel/FPU-emu/poly_l2.c | polynomial((unsigned *)&accum.sigl, (unsigned *)&Xsq, lterms, HIPOWER-1); |
accum | 104 | kernel/FPU-emu/poly_l2.c | sign = accum.sign; |
accum | 105 | kernel/FPU-emu/poly_l2.c | accum.sign = 0; |
accum | 108 | kernel/FPU-emu/poly_l2.c | accum.exp = EXP_BIAS + accum.exp; |
accum | 109 | kernel/FPU-emu/poly_l2.c | normalize(&accum); |
accum | 140 | kernel/FPU-emu/poly_l2.c | reg_u_mul(&lXx, &accum, &accum, FULL_PRECISION); |
accum | 141 | kernel/FPU-emu/poly_l2.c | accum.exp += - EXP_BIAS + 1; |
accum | 143 | kernel/FPU-emu/poly_l2.c | reg_u_add(&lXx, &accum, result, FULL_PRECISION); |
accum | 151 | kernel/FPU-emu/poly_l2.c | mul64((long long *)&accum.sigl, |
accum | 152 | kernel/FPU-emu/poly_l2.c | (long long *)&Xx.sigl, (long long *)&accum.sigl); |
accum | 154 | kernel/FPU-emu/poly_l2.c | *((long long *)(&accum.sigl)) += *((long long *)(&Xx.sigl)); |
accum | 156 | kernel/FPU-emu/poly_l2.c | if ( Xx.sigh > accum.sigh ) |
accum | 160 | kernel/FPU-emu/poly_l2.c | poly_div2((long long *)&accum.sigl); |
accum | 161 | kernel/FPU-emu/poly_l2.c | accum.sigh |= 0x80000000; |
accum | 162 | kernel/FPU-emu/poly_l2.c | accum.exp++; |
accum | 168 | kernel/FPU-emu/poly_l2.c | if ( exponent && ((exponent < 0) ^ (accum.sign)) ) |
accum | 172 | kernel/FPU-emu/poly_l2.c | accum.sign = !accum.sign; |
accum | 175 | kernel/FPU-emu/poly_l2.c | if ( accum.sigl | accum.sigh ) |
accum | 179 | kernel/FPU-emu/poly_l2.c | if ( accum.exp < 0 ) |
accum | 181 | kernel/FPU-emu/poly_l2.c | poly_div2((long long *)&accum.sigl); |
accum | 182 | kernel/FPU-emu/poly_l2.c | accum.exp++; |
accum | 185 | kernel/FPU-emu/poly_l2.c | *((long long *)&(accum.sigl)) = - *((long long *)&(accum.sigl)); |
accum | 197 | kernel/FPU-emu/poly_l2.c | if ( accum.exp ) |
accum | 199 | kernel/FPU-emu/poly_l2.c | accum.exp++; |
accum | 200 | kernel/FPU-emu/poly_l2.c | poly_div2((long long *)&accum.sigl); |
accum | 204 | kernel/FPU-emu/poly_l2.c | poly_div2((long long *)&accum.sigl); |
accum | 206 | kernel/FPU-emu/poly_l2.c | accum.sigh |= 0x80000000; |
accum | 213 | kernel/FPU-emu/poly_l2.c | accum.exp += bits + EXP_BIAS - 1; |
accum | 215 | kernel/FPU-emu/poly_l2.c | reg_move(&accum, result); |
accum | 230 | kernel/FPU-emu/poly_l2.c | FPU_REG arg_pl1, denom, accum, local_arg, poly_arg; |
accum | 269 | kernel/FPU-emu/poly_l2.c | polynomial(&(accum.sigl), (unsigned *)&Xsq, lterms, HIPOWER-1); |
accum | 271 | kernel/FPU-emu/poly_l2.c | accum.tag = TW_Valid; /* set the tags to Valid */ |
accum | 272 | kernel/FPU-emu/poly_l2.c | accum.sign = SIGN_POS; /* and make accum positive */ |
accum | 275 | kernel/FPU-emu/poly_l2.c | accum.exp = EXP_BIAS - 1; |
accum | 276 | kernel/FPU-emu/poly_l2.c | normalize(&accum); |
accum | 278 | kernel/FPU-emu/poly_l2.c | reg_u_mul(&local_arg, &accum, &accum, FULL_PRECISION); |
accum | 279 | kernel/FPU-emu/poly_l2.c | accum.exp -= EXP_BIAS - 1; |
accum | 281 | kernel/FPU-emu/poly_l2.c | reg_u_add(&local_arg, &accum, result, FULL_PRECISION); |
accum | 46 | kernel/FPU-emu/poly_sin.c | FPU_REG Xx, Xx2, Xx4, accum, negaccum; |
accum | 94 | kernel/FPU-emu/poly_sin.c | *(short *)&(accum.sign) = 0; |
accum | 95 | kernel/FPU-emu/poly_sin.c | accum.exp = 0; |
accum | 98 | kernel/FPU-emu/poly_sin.c | polynomial(&(accum.sigl), &(Xx4.sigl), lterms, HIPOWER-1); |
accum | 110 | kernel/FPU-emu/poly_sin.c | *((long long *)(&(accum.sigl))) -= *((long long *)(&(negaccum.sigl))); |
accum | 113 | kernel/FPU-emu/poly_sin.c | accum.exp = EXP_BIAS - 1 + accum.exp; |
accum | 115 | kernel/FPU-emu/poly_sin.c | *(short *)&(result->sign) = *(short *)&(accum.sign); |
accum | 116 | kernel/FPU-emu/poly_sin.c | result->exp = accum.exp; |
accum | 117 | kernel/FPU-emu/poly_sin.c | result->sigl = accum.sigl; |
accum | 118 | kernel/FPU-emu/poly_sin.c | result->sigh = accum.sigh; |