/linux-3.4.99/lib/mpi/ |
D | mpi-inv.c | 38 int sign; in mpi_invm() local 84 t2->sign = 1; in mpi_invm() 88 t3->sign = !t3->sign; in mpi_invm() 130 if (!t3->sign) { in mpi_invm() 141 sign = u->sign; in mpi_invm() 142 u->sign = !u->sign; in mpi_invm() 146 u->sign = sign; in mpi_invm() 147 sign = t3->sign; in mpi_invm() 148 t3->sign = !t3->sign; in mpi_invm() 151 t3->sign = sign; in mpi_invm() [all …]
|
D | mpi-cmp.c | 30 if (u->sign) in mpi_cmp_ui() 52 if (!u->sign && v->sign) in mpi_cmp() 54 if (u->sign && !v->sign) in mpi_cmp() 56 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp() 58 if (usize != vsize && u->sign && v->sign) in mpi_cmp() 65 if ((cmp < 0 ? 1 : 0) == (u->sign ? 1 : 0)) in mpi_cmp()
|
D | mpi-mul.c | 37 int sign; in mpi_mul_ui() local 40 sign = mult->sign; in mpi_mul_ui() 44 prod->sign = 0; in mpi_mul_ui() 58 prod->sign = sign; in mpi_mul_ui() 70 usign = u->sign; in mpi_mul_2exp() 74 w->sign = 0; in mpi_mul_2exp() 103 w->sign = wsign; in mpi_mul_2exp() 119 usign = v->sign; in mpi_mul() 122 vsign = u->sign; in mpi_mul() 126 usign = u->sign; in mpi_mul() [all …]
|
D | mpi-add.c | 43 usign = u->sign; in mpi_add_ui() 78 w->sign = wsign; in mpi_add_ui() 90 usign = v->sign; in mpi_add() 92 vsign = u->sign; in mpi_add() 101 usign = u->sign; in mpi_add() 103 vsign = v->sign; in mpi_add() 147 w->sign = wsign; in mpi_add() 162 usign = u->sign; in mpi_sub_ui() 198 w->sign = wsign; in mpi_sub_ui() 210 vv->sign = !vv->sign; in mpi_sub() [all …]
|
D | mpi-div.c | 37 int divisor_sign = divisor->sign; in mpi_fdiv_r() 51 if (((divisor_sign ? 1 : 0) ^ (dividend->sign ? 1 : 0)) && rem->nlimbs) in mpi_fdiv_r() 74 if (rlimb && dividend->sign) in mpi_fdiv_r_ui() 96 int divisor_sign = divisor->sign; in mpi_fdiv_qr() 108 if ((divisor_sign ^ dividend->sign) && rem->nlimbs) { in mpi_fdiv_qr() 145 mpi_size_t sign_remainder = num->sign; in mpi_tdiv_qr() 146 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr() 168 rem->sign = num->sign; in mpi_tdiv_qr() 175 quot->sign = 0; in mpi_tdiv_qr() 197 quot->sign = sign_quotient; in mpi_tdiv_qr() [all …]
|
D | mpicoder.c | 53 val->sign = 0; in mpi_read_from_buffer() 81 int hexmode = 0, sign = 0, prepend_zero = 0, i, j, c, c1, c2; in mpi_fromstr() local 86 sign = 1; in mpi_fromstr() 106 val->sign = sign; in mpi_fromstr() 158 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer() argument 165 if (sign) in mpi_get_buffer() 166 *sign = a->sign; in mpi_get_buffer() 209 int mpi_set_buffer(MPI a, const void *xbuffer, unsigned nbytes, int sign) in mpi_set_buffer() argument 219 a->sign = sign; in mpi_set_buffer()
|
D | mpiutil.c | 50 a->sign = 0; in mpi_alloc() 149 b->sign = a->sign; in mpi_copy() 166 int usign = u->sign; in mpi_set() 177 w->sign = usign; in mpi_set() 187 w->sign = 0; in mpi_set_ui() 200 w->sign = 0; in mpi_alloc_set_ui()
|
D | mpi-pow.c | 55 esign = exp->sign; in mpi_powm() 56 msign = mod->sign; in mpi_powm() 69 res->sign = 0; in mpi_powm() 87 bsign = base->sign; in mpi_powm() 107 res->sign = 0; in mpi_powm() 168 negative_result = (ep[0] & 1) && base->sign; in mpi_powm() 304 res->sign = rsign; in mpi_powm()
|
/linux-3.4.99/arch/parisc/math-emu/ |
D | denormal.c | 60 int sign, exponent; in sgl_denormalize() local 66 sign = Sgl_sign(opnd); in sgl_denormalize() 71 if (sign == 0) { in sgl_denormalize() 76 if (sign != 0) { in sgl_denormalize() 88 Sgl_set_sign(opnd,sign); in sgl_denormalize() 101 int sign, exponent; in dbl_denormalize() local 108 sign = Dbl_sign(opndp1); in dbl_denormalize() 113 if (sign == 0) { in dbl_denormalize() 118 if (sign != 0) { in dbl_denormalize() 130 Dbl_set_sign(opndp1,sign); in dbl_denormalize()
|
/linux-3.4.99/arch/m68k/math-emu/ |
D | fp_arith.c | 40 dest->sign = 0; in fp_fabs() 52 dest->sign = !dest->sign; in fp_fneg() 73 if (IS_INF(src) && (src->sign != dest->sign)) in fp_fadd() 84 if (src->sign != dest->sign) { in fp_fadd() 86 dest->sign = 1; in fp_fadd() 88 dest->sign = 0; in fp_fadd() 102 if (dest->sign == src->sign) { in fp_fadd() 109 dest->sign = !dest->sign; in fp_fadd() 127 src->sign = !src->sign; in fp_fsub() 138 src->sign = !src->sign; in fp_fcmp() [all …]
|
/linux-3.4.99/arch/x86/math-emu/ |
D | fpu_trig.c | 155 u_char sign; in convert_l2reg() local 164 sign = SIGN_POS; in convert_l2reg() 167 sign = SIGN_NEG; in convert_l2reg() 175 setsign(dest, sign); in convert_l2reg() 357 u_char sign; in fxtract() local 371 sign = getsign(st1_ptr); in fxtract() 380 setsign(st_new_ptr, sign); in fxtract() 384 sign = getsign(st0_ptr); in fxtract() 391 setsign(st_new_ptr, sign); in fxtract() 403 sign = getsign(st1_ptr); in fxtract() [all …]
|
D | reg_divide.c | 32 u_char taga, tagb, signa, signb, sign, saved_sign; in FPU_div() local 69 sign = signa ^ signb; in FPU_div() 80 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div() 102 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div() 118 setsign(dest, sign); in FPU_div() 127 return FPU_divide_by_zero(deststnr, sign); in FPU_div() 162 setsign(dest, sign); in FPU_div() 171 setsign(dest, sign); in FPU_div()
|
D | reg_mul.c | 35 u_char sign = (getsign(a) ^ getsign(b)); in FPU_mul() local 42 FPU_u_mul(a, b, dest, control_w, sign, in FPU_mul() 66 tag = FPU_u_mul(&x, &y, dest, control_w, sign, in FPU_mul() 86 setsign(dest, sign); in FPU_mul() 100 setsign(dest, sign); in FPU_mul() 104 setsign(dest, sign); in FPU_mul()
|
D | fpu_emu.h | 193 FPU_REG * answ, unsigned int control_w, u_char sign, 196 FPU_REG * answ, unsigned int control_w, u_char sign, 199 FPU_REG * answ, unsigned int control_w, u_char sign); 201 FPU_REG * answ, unsigned int control_w, u_char sign, 204 unsigned int control_w, u_char sign); 209 unsigned int control_w, u_char sign);
|
D | poly_2xm1.c | 52 int poly_2xm1(u_char sign, FPU_REG *arg, FPU_REG *result) in poly_2xm1() argument 112 if (sign != SIGN_POS) { in poly_2xm1() 138 tag = FPU_round(result, 1, 0, FULL_PRECISION, sign); in poly_2xm1() 140 setsign(result, sign); in poly_2xm1()
|
D | poly_l2.c | 30 u_char sign, argsign; in poly_l2() local 60 sign = SIGN_NEG; in poly_l2() 63 sign = SIGN_POS; in poly_l2() 70 if (sign ^ argsign) in poly_l2() 75 sign = argsign; in poly_l2() 92 tag = FPU_round(st1_ptr, 1, 0, FULL_PRECISION, sign ^ st1_sign); in poly_l2()
|
/linux-3.4.99/arch/arm/vfp/ |
D | vfpdouble.c | 44 .sign = 0, 51 str, d->sign != 0, d->exponent, d->significand); in vfp_double_dump() 137 } else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vd->sign != 0)) in vfp_double_normaliseround() 280 else if (vdm.sign == 0) { in vfp_double_fsqrt() 308 if (vdm.sign) in vfp_double_fsqrt() 316 vdd.sign = 0; in vfp_double_fsqrt() 459 vsd.sign = vdm.sign; in vfp_double_fcvts() 487 vdm.sign = 0; in vfp_double_fuito() 499 vdm.sign = (m & 0x80000000) >> 16; in vfp_double_fsito() 501 vdm.significand = vdm.sign ? -m : m; in vfp_double_fsito() [all …]
|
D | vfpsingle.c | 44 .sign = 0, 51 str, s->sign != 0, s->exponent, s->significand); in vfp_single_dump() 142 } else if ((rmode == FPSCR_ROUND_PLUSINF) ^ (vs->sign != 0)) in __vfp_single_normaliseround() 328 else if (vsm.sign == 0) { in vfp_single_fsqrt() 356 if (vsm.sign) in vfp_single_fsqrt() 364 vsd.sign = 0; in vfp_single_fsqrt() 502 vdd.sign = vsm.sign; in vfp_single_fcvtd() 529 vs.sign = 0; in vfp_single_fuito() 540 vs.sign = (m & 0x80000000) >> 16; in vfp_single_fsito() 542 vs.significand = vs.sign ? -m : m; in vfp_single_fsito() [all …]
|
D | vfp.h | 147 #define vfp_sign_negate(sign) (sign ^ 0x8000) argument 154 u16 sign; member 195 s->sign = vfp_single_packed_sign(val) >> 16, in vfp_single_unpack() 212 val = (s->sign << 16) + in vfp_single_pack() 259 u16 sign; member 304 s->sign = vfp_double_packed_sign(val) >> 48; in vfp_double_unpack() 321 val = ((u64)s->sign << 48) + in vfp_double_pack()
|
/linux-3.4.99/arch/x86/boot/ |
D | printf.c | 50 char c, sign, locase; in number() local 61 sign = 0; in number() 64 sign = '-'; in number() 68 sign = '+'; in number() 71 sign = ' '; in number() 93 if (sign) in number() 94 *str++ = sign; in number()
|
/linux-3.4.99/arch/m68k/fpsp040/ |
D | do_func.S | 105 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand 117 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand 125 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand 133 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source 141 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source 149 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source 158 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source 177 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source 184 | the sign and return operr if negative. 302 moveb ETEMP(%a6),%d1 |get sign of src op [all …]
|
/linux-3.4.99/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 258 int sign; in denormal_addf() local 261 sign = hx & 0x80000000; in denormal_addf() 268 sign ^= 0x80000000; in denormal_addf() 272 sign ^= 0x80000000; in denormal_addf() 275 sign = hx & 0x80000000; in denormal_addf() 284 return sign | ix; in denormal_addf() 343 long long sign; in denormal_addd() local 346 sign = hx & 0x8000000000000000LL; in denormal_addd() 353 sign ^= 0x8000000000000000LL; in denormal_addd() 357 sign ^= 0x8000000000000000LL; in denormal_addd() [all …]
|
/linux-3.4.99/arch/arm/kernel/ |
D | module.c | 64 u32 upper, lower, sign, j1, j2; in apply_relocate() local 167 sign = (upper >> 10) & 1; in apply_relocate() 170 offset = (sign << 24) | ((~(j1 ^ sign) & 1) << 23) | in apply_relocate() 171 ((~(j2 ^ sign) & 1) << 22) | in apply_relocate() 198 sign = (offset >> 24) & 1; in apply_relocate() 199 j1 = sign ^ (~(offset >> 23) & 1); in apply_relocate() 200 j2 = sign ^ (~(offset >> 22) & 1); in apply_relocate() 201 *(u16 *)loc = (u16)((upper & 0xf800) | (sign << 10) | in apply_relocate()
|
/linux-3.4.99/arch/powerpc/boot/ |
D | stdio.c | 61 char c,sign,tmp[66]; in number() local 72 sign = 0; in number() 75 sign = '-'; in number() 79 sign = '+'; in number() 82 sign = ' '; in number() 104 if (sign) in number() 105 *str++ = sign; in number()
|
/linux-3.4.99/drivers/isdn/i4l/ |
D | isdn_audio.c | 263 int sign, in isdn_audio_linear2ulaw() local 269 sign = (sample >> 8) & 0x80; /* set aside the sign */ in isdn_audio_linear2ulaw() 270 if (sign != 0) in isdn_audio_linear2ulaw() 279 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw() 371 int sign; in isdn_audio_adpcm2xlaw() local 375 sign = (e >> (nbits - 1)) ? -1 : 1; in isdn_audio_adpcm2xlaw() 377 a += sign * ((e << 1) + 1) * d >> 1; in isdn_audio_adpcm2xlaw() 407 int sign, in isdn_audio_xlaw2adpcm() local 425 sign = (e >> (nbits - 1)) ? -1 : 1; in isdn_audio_xlaw2adpcm() 428 a += sign * ((e << 1) + 1) * d >> 1; in isdn_audio_xlaw2adpcm()
|