Home
last modified time | relevance | path

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

12345

/linux-2.4.37.9/arch/m68k/math-emu/
Dfp_arith.c39 dest->sign = 0; in fp_fabs()
51 dest->sign = !dest->sign; in fp_fneg()
72 if (IS_INF(src) && (src->sign != dest->sign)) in fp_fadd()
83 if (src->sign != dest->sign) { in fp_fadd()
85 dest->sign = 1; in fp_fadd()
87 dest->sign = 0; in fp_fadd()
101 if (dest->sign == src->sign) { in fp_fadd()
108 dest->sign = !dest->sign; in fp_fadd()
126 src->sign = !src->sign; in fp_fsub()
137 src->sign = !src->sign; in fp_fcmp()
[all …]
Dfp_util.S100 clr.l %d1 | sign defaults to zero
108 move.l %d1,(%a0)+ | set sign / exp
133 lsr.l #8,%d1 | exponent / sign
141 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
171 lsr.l #8,%d1 | exponent / sign
179 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
/linux-2.4.37.9/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()
Dsgl_float.h175 #define Sgl_setinfinity(sgl_value,sign) \ argument
177 ((unsigned int)sign << 31)
180 #define Sgl_set_sign(sgl_value,sign) Deposit_ssign(sgl_value,sign) argument
209 #define Sgl_setlargest(sgl_value,sign) \ argument
210 Sall(sgl_value) = (unsigned int)sign << 31 | \
427 #define Sglext_set_sign(dbl_value,sign) Sgl_set_sign(dbl_value,sign) argument
/linux-2.4.37.9/arch/i386/math-emu/
Dfpu_trig.c156 u_char sign; in convert_l2reg() local
166 { sign = SIGN_POS; } in convert_l2reg()
168 { num = -num; sign = SIGN_NEG; } in convert_l2reg()
175 setsign(dest, sign); in convert_l2reg()
381 u_char sign; in fxtract() local
394 sign = getsign(st1_ptr); in fxtract()
403 setsign(st_new_ptr, sign); in fxtract()
409 sign = getsign(st0_ptr); in fxtract()
416 setsign(st_new_ptr, sign); in fxtract()
429 sign = getsign(st1_ptr); in fxtract()
[all …]
Dreg_divide.c32 u_char taga, tagb, signa, signb, sign, saved_sign; in FPU_div() local
78 sign = signa ^ signb; in FPU_div()
90 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
113 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
133 setsign(dest, sign); in FPU_div()
143 return FPU_divide_by_zero(deststnr, sign); in FPU_div()
184 setsign(dest, sign); in FPU_div()
195 setsign(dest, sign); in FPU_div()
Dreg_mul.c36 u_char sign = (getsign(a) ^ getsign(b)); in FPU_mul() local
44 tag = FPU_u_mul(a, b, dest, control_w, sign, exponent(a) + exponent(b)); in FPU_mul()
69 tag = FPU_u_mul(&x, &y, dest, control_w, sign, in FPU_mul()
92 setsign(dest, sign); in FPU_mul()
113 setsign(dest, sign); in FPU_mul()
119 setsign(dest, sign); in FPU_mul()
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_2xm1.c54 int poly_2xm1(u_char sign, FPU_REG *arg, FPU_REG *result) in poly_2xm1() argument
121 if ( sign != SIGN_POS ) in poly_2xm1()
149 tag = FPU_round(result, 1, 0, FULL_PRECISION, sign); in poly_2xm1()
151 setsign(result, sign); in poly_2xm1()
Dpoly_l2.c33 u_char sign, argsign; in poly_l2() local
70 sign = SIGN_NEG; in poly_l2()
74 sign = SIGN_POS; in poly_l2()
81 if ( sign ^ argsign ) in poly_l2()
88 sign = argsign; in poly_l2()
105 tag = FPU_round(st1_ptr, 1, 0, FULL_PRECISION, sign ^ st1_sign); in poly_l2()
Dreg_ld_str.c40 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument
48 if ( sign ) in normalize_no_excep()
242 int sign; in FPU_load_int64() local
257 sign = SIGN_Positive; in FPU_load_int64()
261 sign = SIGN_Negative; in FPU_load_int64()
266 return normalize_no_excep(st0_ptr, 63, sign); in FPU_load_int64()
335 int sign; in FPU_load_bcd() local
352 FPU_get_user(sign, (u_char *) s+9); in FPU_load_bcd()
353 sign = sign & 0x80 ? SIGN_Negative : SIGN_Positive; in FPU_load_bcd()
359 addexponent(st0_ptr, sign); /* Set the sign. */ in FPU_load_bcd()
[all …]
Dreg_convert.c19 int sign = getsign(a); in FPU_to_exp16() local
51 return sign; in FPU_to_exp16()
/linux-2.4.37.9/arch/m68k/fpsp040/
Ddo_func.S106 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand
118 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand
126 btstb #sign_bit,LOCAL_EX(%a0) |get sign of source operand
134 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source
142 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source
150 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source
159 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source
178 btstb #sign_bit,LOCAL_EX(%a0) |check sign of source
185 | the sign and return operr if negative.
303 moveb ETEMP(%a6),%d1 |get sign of src op
[all …]
Dkernel_ex.S51 | store properly signed inf (use sign of etemp) into fp0
80 btstb #sign_bit,ETEMP_EX(%a6) |check sign for neg or pos
81 beqs p_inf |branch if pos sign
96 btstb #sign_bit,ETEMP_EX(%a6) |check sign for neg or pos
135 | operand is built in FP_SCR1 and only the sign from the original operand
142 tstb (%a0) |extract sign from caller's exop
287 btstb #sign_bit,FPTEMP_EX(%a6) |test sign of nan
321 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.S54 smi L_SCR1(%a6) |use L_SCR1 to hold sign
55 andil #0x7fff,%d1 |strip sign
57 andiw #0x7fff,%d0 |clr sign bit
91 tstw ETEMP(%a6) |check src sign
194 tstb L_SCR1(%a6) |test for sign
196 orw #0x8000,FPTEMP_EX(%a6) |set sign bit
216 tstb L_SCR1(%a6) |check sign
221 tstb L_SCR1(%a6) |check sign
Dbindec.S12 | value in memory; d0 contains the k-factor sign-extended
22 | A1. Set RM and size ext; Set SIGMA = sign of input.
56 | sign of ISCALE, used in A9. Fp1 contains
106 | A16. Write sign bits to final string.
169 | A1. Set RM and size ext. Set SIGMA = sign input;
177 movel (%a0),L_SCR2(%a6) |save exponent for sign check
188 andiw #0x7fff,%d0 |strip sign of normalized exp
204 andiw #0x7fff,%d0 |strip sign of normalized exp
307 tstl %d7 |branch on sign of k
316 tstl %d4 |LEN check: branch on sign of LEN
[all …]
/linux-2.4.37.9/arch/ppc/boot/common/
Dmisc-common.c306 char c, sign, *cp = 0; in _vprintk() local
347 sign = '\0'; in _vprintk()
359 sign = '-'; in _vprintk()
385 if (sign != '\0') in _vprintk()
392 if (sign != '\0') in _vprintk()
394 (*putc)(sign); in _vprintk()
395 sign = '\0'; in _vprintk()
408 if (sign != '\0') in _vprintk()
410 (*putc)(sign); in _vprintk()
/linux-2.4.37.9/include/math-emu/
Dextended.h61 unsigned long sign : 1; member
69 unsigned sign : 1;
85 X##_s = _flo.bits.sign; \
103 X##_s = _flo->bits.sign; \
121 _flo.bits.sign = X##_s; \
138 _flo->bits.sign = X##_s; \
246 unsigned sign : 1; member
252 unsigned sign : 1;
266 X##_s = _flo.bits.sign; \
282 X##_s = _flo->bits.sign; \
[all …]
/linux-2.4.37.9/drivers/isdn/
Disdn_audio.c262 int sign, in isdn_audio_linear2ulaw() local
268 sign = (sample >> 8) & 0x80; /* set aside the sign */ in isdn_audio_linear2ulaw()
269 if (sign != 0) in isdn_audio_linear2ulaw()
278 ulawbyte = ~(sign | (exponent << 4) | mantissa); in isdn_audio_linear2ulaw()
370 int sign; in isdn_audio_adpcm2xlaw() local
374 sign = (e >> (nbits - 1)) ? -1 : 1; in isdn_audio_adpcm2xlaw()
376 a += sign * ((e << 1) + 1) * d >> 1; in isdn_audio_adpcm2xlaw()
416 int sign, in isdn_audio_xlaw2adpcm() local
434 sign = (e >> (nbits - 1)) ? -1 : 1; in isdn_audio_xlaw2adpcm()
437 a += sign * ((e << 1) + 1) * d >> 1; in isdn_audio_xlaw2adpcm()
/linux-2.4.37.9/arch/ppc/math-emu/
Ddouble.h37 unsigned sign : 1; member
45 unsigned sign : 1;
86 unsigned sign : 1; member
92 unsigned sign : 1;
/linux-2.4.37.9/lib/
Dvsprintf.c133 char c,sign,tmp[66]; in number() local
145 sign = 0; in number()
148 sign = '-'; in number()
152 sign = '+'; in number()
155 sign = ' '; in number()
180 if (sign) { in number()
182 *buf = sign; in number()
/linux-2.4.37.9/drivers/usb/
Dvicam.c812 int sign; in vicam_decode_color() local
827 sign = 1; in vicam_decode_color()
840 Cr = sign * ((src[prevX] - src[0]) + (src[nextX] - src[0])) >> 1; in vicam_decode_color()
841 …Cb = sign * ((src[prevY] - src[prevX + prevY]) + (src[prevY] - src[nextX + prevY]) + (src[nextY] -… in vicam_decode_color()
845 src[0] + (sign * (Cr >> 1)), in vicam_decode_color()
850 sign *= -1; in vicam_decode_color()
860 sign = 1; in vicam_decode_color()
873 …Cr = sign * ((src[prevX + prevY] - src[prevY]) + (src[nextX + prevY] - src[prevY]) + (src[prevX + … in vicam_decode_color()
874 Cb = sign * ((src[0] - src[prevX]) + (src[0] - src[nextX])) >> 1; in vicam_decode_color()
878 src[0] - (sign * (Cb >> 1)), in vicam_decode_color()
[all …]
/linux-2.4.37.9/arch/mips/math-emu/
Dieee754.h63 unsigned sign:1; member
68 unsigned sign:1; member
76 unsigned int sign:1; member
91 unsigned sign:1; member
99 unsigned int sign:1; member
108 unsigned sign:1; member
/linux-2.4.37.9/arch/ppc64/boot/
Dprom.c356 char c,sign,tmp[66]; in number() local
367 sign = 0; in number()
370 sign = '-'; in number()
374 sign = '+'; in number()
377 sign = ' '; in number()
398 if (sign) in number()
399 *str++ = sign; in number()

12345