Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 77) sorted by relevance

1234

/arch/parisc/math-emu/
Ddenormal.c60 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()
/arch/m68k/math-emu/
Dfp_arith.c40 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 …]
Dfp_util.S99 clr.l %d1 | sign defaults to zero
107 move.l %d1,(%a0)+ | set sign / exp
132 lsr.l #8,%d1 | exponent / sign
140 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
170 lsr.l #8,%d1 | exponent / sign
178 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
/arch/x86/math-emu/
Dfpu_trig.c155 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 …]
Dreg_mul.c35 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()
Dreg_divide.c32 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()
Dpoly_2xm1.c52 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()
Dreg_convert.c18 int sign = getsign(a); in FPU_to_exp16() local
45 return sign; in FPU_to_exp16()
Dfpu_emu.h193 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);
Dpoly_l2.c30 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()
Dreg_ld_str.c38 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument
46 if (sign) in normalize_no_excep()
212 int sign; in FPU_load_int64() local
227 sign = SIGN_Positive; in FPU_load_int64()
230 sign = SIGN_Negative; in FPU_load_int64()
235 return normalize_no_excep(st0_ptr, 63, sign); in FPU_load_int64()
303 int sign; in FPU_load_bcd() local
319 FPU_get_user(sign, s + 9); in FPU_load_bcd()
320 sign = sign & 0x80 ? SIGN_Negative : SIGN_Positive; in FPU_load_bcd()
325 addexponent(st0_ptr, sign); /* Set the sign. */ in FPU_load_bcd()
[all …]
/arch/arm/vfp/
Dvfpdouble.c44 .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 …]
Dvfpsingle.c44 .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 …]
Dvfp.h147 #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()
/arch/x86/boot/
Dprintf.c50 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()
/arch/arm/kernel/
Dmodule.c64 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()
/arch/powerpc/boot/
Dstdio.c61 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()
/arch/sh/kernel/cpu/sh2a/
Dfpu.c258 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 …]
/arch/m68k/fpsp040/
Ddo_func.S105 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 …]
Dkernel_ex.S50 | store properly signed inf (use sign of etemp) into fp0
79 btstb #sign_bit,ETEMP_EX(%a6) |check sign for neg or pos
80 beqs p_inf |branch if pos sign
95 btstb #sign_bit,ETEMP_EX(%a6) |check sign for neg or pos
134 | operand is built in FP_SCR1 and only the sign from the original operand
141 tstb (%a0) |extract sign from caller's exop
286 btstb #sign_bit,FPTEMP_EX(%a6) |test sign of nan
320 fmovex FPTEMP(%a6),%fp0 |load non-sign. nan
Dssinh.S26 | y = |X|, sgn = sign(X), and z = expm1(Y),
33 | sinh(X) = sign(X) * exp(|X|)/2.
37 | sgn := sign(X)
44 | sign(X)*Huge*Huge to generate overflow and an infinity with
45 | the appropriate sign. Huge is the largest finite number in
Dscale.S53 smi L_SCR1(%a6) |use L_SCR1 to hold sign
54 andil #0x7fff,%d1 |strip sign
56 andiw #0x7fff,%d0 |clr sign bit
90 tstw ETEMP(%a6) |check src sign
193 tstb L_SCR1(%a6) |test for sign
195 orw #0x8000,FPTEMP_EX(%a6) |set sign bit
215 tstb L_SCR1(%a6) |check sign
220 tstb L_SCR1(%a6) |check sign
Dsatanh.S27 | sgn := sign(X)
35 | 4. (|X| = 1) Generate infinity with an appropriate sign and
37 | sgn := sign(X)
/arch/ia64/kernel/
Dftrace.c36 u64 sign:1; member
153 call_insn->sign = tmp_call->sign; in ftrace_make_nop_check()
/arch/mips/math-emu/
Dieee754.h44 unsigned sign:1; member
49 unsigned sign:1; member
57 unsigned int sign:1; member
72 unsigned sign:1; member
81 unsigned int sign:1; member
90 unsigned sign:1; member

1234