Home
last modified time | relevance | path

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

12345678910>>...14

/Linux-v4.19/lib/mpi/
Dmpi-cmp.c30 if (u->sign) in mpi_cmp_ui()
53 if (!u->sign && v->sign) in mpi_cmp()
55 if (u->sign && !v->sign) in mpi_cmp()
57 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp()
59 if (usize != vsize && u->sign && v->sign) in mpi_cmp()
64 if (u->sign) in mpi_cmp()
Dmpicoder.c61 val->sign = 0; in mpi_read_raw_data()
144 int *sign) in mpi_read_buffer() argument
160 if (sign) in mpi_read_buffer()
161 *sign = a->sign; in mpi_read_buffer()
203 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer() argument
222 ret = mpi_read_buffer(a, buf, n, nbytes, sign); in mpi_get_buffer()
248 int *sign) in mpi_write_to_sgl() argument
263 if (sign) in mpi_write_to_sgl()
264 *sign = a->sign; in mpi_write_to_sgl()
387 val->sign = 0; in mpi_read_raw_from_sgl()
/Linux-v4.19/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()
/Linux-v4.19/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 …]
/Linux-v4.19/arch/x86/math-emu/
Dfpu_trig.c156 u_char sign; in convert_l2reg() local
165 sign = SIGN_POS; in convert_l2reg()
168 sign = SIGN_NEG; in convert_l2reg()
176 setsign(dest, sign); in convert_l2reg()
358 u_char sign; in fxtract() local
372 sign = getsign(st1_ptr); in fxtract()
381 setsign(st_new_ptr, sign); in fxtract()
385 sign = getsign(st0_ptr); in fxtract()
392 setsign(st_new_ptr, sign); in fxtract()
404 sign = getsign(st1_ptr); in fxtract()
[all …]
Dreg_divide.c33 u_char taga, tagb, signa, signb, sign, saved_sign; in FPU_div() local
70 sign = signa ^ signb; in FPU_div()
81 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
103 tag = FPU_u_div(&x, &y, dest, control_w, sign); in FPU_div()
119 setsign(dest, sign); in FPU_div()
128 return FPU_divide_by_zero(deststnr, sign); in FPU_div()
163 setsign(dest, sign); in FPU_div()
172 setsign(dest, sign); in FPU_div()
Dreg_mul.c36 u_char sign = (getsign(a) ^ getsign(b)); in FPU_mul() local
43 FPU_u_mul(a, b, dest, control_w, sign, in FPU_mul()
67 tag = FPU_u_mul(&x, &y, dest, control_w, sign, in FPU_mul()
87 setsign(dest, sign); in FPU_mul()
101 setsign(dest, sign); in FPU_mul()
105 setsign(dest, sign); in FPU_mul()
Dfpu_emu.h194 FPU_REG * answ, unsigned int control_w, u_char sign,
197 FPU_REG * answ, unsigned int control_w, u_char sign,
200 FPU_REG * answ, unsigned int control_w, u_char sign);
202 FPU_REG * answ, unsigned int control_w, u_char sign,
205 unsigned int control_w, u_char sign);
210 unsigned int control_w, u_char sign);
Dpoly_2xm1.c53 int poly_2xm1(u_char sign, FPU_REG *arg, FPU_REG *result) in poly_2xm1() argument
113 if (sign != SIGN_POS) { in poly_2xm1()
139 tag = FPU_round(result, 1, 0, FULL_PRECISION, sign); in poly_2xm1()
141 setsign(result, sign); in poly_2xm1()
Dpoly_l2.c31 u_char sign, argsign; in poly_l2() local
61 sign = SIGN_NEG; in poly_l2()
64 sign = SIGN_POS; in poly_l2()
71 if (sign ^ argsign) in poly_l2()
76 sign = argsign; in poly_l2()
93 tag = FPU_round(st1_ptr, 1, 0, FULL_PRECISION, sign ^ st1_sign); in poly_l2()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dvce_v1_0.c159 struct vce_v1_0_fw_signature *sign = (void*)rdev->vce_fw->data; in vce_v1_0_load_fw() local
181 for (i = 0; i < le32_to_cpu(sign->num); ++i) { in vce_v1_0_load_fw()
182 if (le32_to_cpu(sign->val[i].chip_id) == chip_id) in vce_v1_0_load_fw()
186 if (i == le32_to_cpu(sign->num)) in vce_v1_0_load_fw()
190 data[0] = sign->val[i].nonce[0]; in vce_v1_0_load_fw()
191 data[1] = sign->val[i].nonce[1]; in vce_v1_0_load_fw()
192 data[2] = sign->val[i].nonce[2]; in vce_v1_0_load_fw()
193 data[3] = sign->val[i].nonce[3]; in vce_v1_0_load_fw()
194 data[4] = cpu_to_le32(le32_to_cpu(sign->len) + 64); in vce_v1_0_load_fw()
197 memcpy(&data[16], &sign[1], rdev->vce_fw->size - sizeof(*sign)); in vce_v1_0_load_fw()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/crypto/
Drsa.c92 int sign; in rsa_enc() local
111 ret = mpi_write_to_sgl(c, req->dst, req->dst_len, &sign); in rsa_enc()
115 if (sign < 0) in rsa_enc()
131 int sign; in rsa_dec() local
150 ret = mpi_write_to_sgl(m, req->dst, req->dst_len, &sign); in rsa_dec()
154 if (sign < 0) in rsa_dec()
169 int sign; in rsa_sign() local
188 ret = mpi_write_to_sgl(s, req->dst, req->dst_len, &sign); in rsa_sign()
192 if (sign < 0) in rsa_sign()
208 int sign; in rsa_verify() local
[all …]
/Linux-v4.19/arch/h8300/lib/
Dmodsi3.S26 ; examine what the sign should be
40 stc ccr,S2L ; keep the sign in bit 3 of S2L
50 xor.b #0x08,S2L ; toggle the result sign
55 ;; Basically the same, except that the sign of the divisor determines
56 ;; the sign.
59 stc ccr,S2L ; keep the sign in bit 3 of S2L
Dmoddivsi3.S26 ; examine what the sign should be
40 stc ccr,S2L ; keep the sign in bit 3 of S2L
50 xor.b #0x08,S2L ; toggle the result sign
55 ;; Basically the same, except that the sign of the divisor determines
56 ;; the sign.
59 stc ccr,S2L ; keep the sign in bit 3 of S2L
/Linux-v4.19/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()
/Linux-v4.19/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 …]
/Linux-v4.19/include/linux/
Dmpi.h46 int sign; /* indicates a negative number */ member
66 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign);
68 int *sign);
70 int *sign);
/Linux-v4.19/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 …]
/Linux-v4.19/arch/arm64/include/asm/
Dcpufeature.h66 bool sign; /* Value is signed ? */ member
321 bool sign; member
435 cpuid_feature_extract_field_width(u64 features, int field, int width, bool sign) in cpuid_feature_extract_field_width() argument
437 return (sign) ? in cpuid_feature_extract_field_width()
443 cpuid_feature_extract_field(u64 features, int field, bool sign) in cpuid_feature_extract_field() argument
445 return cpuid_feature_extract_field_width(features, field, 4, sign); in cpuid_feature_extract_field()
450 return (s64)cpuid_feature_extract_field_width(val, ftrp->shift, ftrp->width, ftrp->sign); in arm64_ftr_value()
/Linux-v4.19/arch/alpha/boot/
Dstdio.c49 char c,sign,tmp[66]; in number() local
60 sign = 0; in number()
63 sign = '-'; in number()
67 sign = '+'; in number()
70 sign = ' '; in number()
92 if (sign) in number()
93 *str++ = sign; in number()
/Linux-v4.19/arch/powerpc/boot/
Dstdio.c85 char c,sign,tmp[66]; in number() local
96 sign = 0; in number()
99 sign = '-'; in number()
103 sign = '+'; in number()
106 sign = ' '; in number()
128 if (sign) in number()
129 *str++ = sign; in number()
/Linux-v4.19/arch/arm/kernel/
Dmodule.c78 u32 upper, lower, sign, j1, j2; in apply_relocate() local
230 sign = (upper >> 10) & 1; in apply_relocate()
233 offset = (sign << 24) | ((~(j1 ^ sign) & 1) << 23) | in apply_relocate()
234 ((~(j2 ^ sign) & 1) << 22) | in apply_relocate()
261 sign = (offset >> 24) & 1; in apply_relocate()
262 j1 = sign ^ (~(offset >> 23) & 1); in apply_relocate()
263 j2 = sign ^ (~(offset >> 22) & 1); in apply_relocate()
264 upper = (u16)((upper & 0xf800) | (sign << 10) | in apply_relocate()

12345678910>>...14