/linux/arch/loongarch/kernel/ |
H A D | unaligned.c | 252 bool sign, write; in emulate_load_store_insn() local 265 sign = true; in emulate_load_store_insn() 270 sign = false; in emulate_load_store_insn() 275 sign = true; in emulate_load_store_insn() 280 sign = true; in emulate_load_store_insn() 285 sign = false; in emulate_load_store_insn() 290 sign = true; in emulate_load_store_insn() 295 sign = true; in emulate_load_store_insn() 300 sign = true; in emulate_load_store_insn() 306 sign in emulate_load_store_insn() [all...] |
/linux/arch/m68k/math-emu/ |
H A D | fp_arith.c | 37 dest->sign = 0; in fp_fabs() 48 dest->sign = !dest->sign; in fp_fneg() 68 if (IS_INF(src) && (src->sign != dest->sign)) in fp_fadd() 79 if (src->sign != dest->sign) { in fp_fadd() 81 dest->sign = 1; in fp_fadd() 83 dest->sign = 0; in fp_fadd() 97 if (dest->sign == src->sign) { in fp_fadd() 104 dest->sign = !dest->sign; in fp_fadd() 121 src->sign = !src->sign; in fp_fsub() 131 src->sign = !src->sign; in fp_fcmp() [all …]
|
/linux/arch/m68k/fpsp040/ |
H A 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 …]
|
H A D | kernel_ex.S | 50 | 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 172 bsetb #sign_bit,FP_SCR1(%a6) |set sign bit of exc operand 239 | format, rounding mode and sign. 244 bfclr ETEMP_SGN(%a6){#0:#8} |fix sign 247 bsetb #sign_bit,FP_SCR1(%a6) |set exceptional operand sign [all …]
|
H A D | scale.S | 53 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 246 tstb L_SCR1(%a6) |check for sign 264 tstb L_SCR1(%a6) |check sign [all …]
|
H A D | stanh.S | 26 | sgn := sign(X), y := 2|X|, z := expm1(Y), and 36 | sgn := sign(X), y := 2|X|, z := exp(Y), 42 | sgn := sign(X), Tiny := 2**(-126), 95 |--Y = 2|X|, Z = EXPM1(Y), TANH(X) = SIGN(X) * Z / (Z+2). 129 |--TANH(X) = 1 - (2/[EXP(2X)+1]). LET Y = 2|X|, SGN = SIGN(X), 149 eorl #0xC0000000,%d0 | ...-SIGN(X)*2 150 fmoves %d0,%fp1 | ...-SIGN(X)*2 IN SGL FMT 151 fdivx %fp0,%fp1 | ...-SIGN(X)2 / [EXP(Y)+1 ] 177 eorl #0x80800000,%d0 | ...-SIGN(X)*EPS
|
H A D | decbin.S | 25 | Set the sign according to SE. Subtract 16 to compensate 31 | adds and muls in FP0. Set the sign according to SM. 59 | exponent sign is positive, and dividing FP0 by FP1 if 126 | 3. Correct for exponent sign. 173 | 2. Correct for mantissa sign. 228 | Check the sign of the mant and make the value in fp0 the same sign. 231 btst #31,(%a0) |test sign of the mantissa 245 | 1. Branch on the sign of the adjusted exponent. 281 | routine is necessary. If so, then check the sign of the exponent 289 btst #30,(%a0) |check sign of exp [all …]
|
/linux/lib/crypto/mpi/ |
H A D | mpi-cmp.c | 34 if (u->sign) in mpi_cmp_ui() 57 if (!u->sign && v->sign) in mpi_cmp() 59 if (u->sign && !v->sign) in mpi_cmp() 61 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp() 63 if (usize != vsize && u->sign && v->sign) in mpi_cmp() 68 if (u->sign) in mpi_cmp()
|
H A D | mpicoder.c | 61 val->sign = 0; in mpi_read_raw_data() 139 * @sign: if not NULL, it will be set to the sign of a. 144 int *sign) in mpi_read_buffer() argument 160 if (sign) in mpi_read_buffer() 161 *sign = a->sign; in mpi_read_buffer() 199 * @sign: if not NULL, it will be set to the sign of the a. 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() 243 * @sign: if not NULL, it will be set to the sign of a. 248 int *sign) in mpi_write_to_sgl() argument [all …]
|
H A D | mpi-add.c | 25 usign = v->sign; in mpi_add() 27 vsign = u->sign; in mpi_add() 37 usign = u->sign; in mpi_add() 39 vsign = v->sign; in mpi_add() 55 } else if (usign != vsign) { /* different sign */ in mpi_add() 75 } else { /* U and V have same sign. Add them. */ in mpi_add() 84 w->sign = wsign; in mpi_add() 98 vv->sign = !vv->sign; in mpi_sub()
|
H A D | mpi-div.c | 21 int divisor_sign = divisor->sign; in mpi_fdiv_r() 40 if (((divisor_sign?1:0) ^ (dividend->sign?1:0)) && rem->nlimbs) in mpi_fdiv_r() 68 mpi_size_t sign_remainder = num->sign; in mpi_tdiv_qr() 69 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr() 89 rem->sign = num->sign; in mpi_tdiv_qr() 97 quot->sign = 0; in mpi_tdiv_qr() 121 quot->sign = sign_quotient; in mpi_tdiv_qr() 127 rem->sign = sign_remainder; in mpi_tdiv_qr() 207 quot->sign = sign_quotient; in mpi_tdiv_qr() 219 rem->sign = sign_remainder; in mpi_tdiv_qr()
|
/linux/arch/parisc/math-emu/ |
H A D | denormal.c | 47 int sign, exponent; in sgl_denormalize() local 53 sign = Sgl_sign(opnd); in sgl_denormalize() 58 if (sign == 0) { in sgl_denormalize() 63 if (sign != 0) { in sgl_denormalize() 75 Sgl_set_sign(opnd,sign); in sgl_denormalize() 88 int sign, exponent; in dbl_denormalize() local 95 sign = Dbl_sign(opndp1); in dbl_denormalize() 100 if (sign == 0) { in dbl_denormalize() 105 if (sign != 0) { in dbl_denormalize() 117 Dbl_set_sign(opndp1,sign); in dbl_denormalize()
|
/linux/arch/arm/vfp/ |
H A D | vfpdouble.c | 44 .sign = 0, 50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%016llx\n", in vfp_double_dump() 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() [all …]
|
H A D | vfpsingle.c | 44 .sign = 0, 50 pr_debug("VFP: %s: sign=%d exponent=%d significand=%08x\n", in vfp_single_dump() 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() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | vce_v1_0.c | 160 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/arch/x86/math-emu/ |
H A D | fpu_trig.c | 156 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 …]
|
H A D | reg_add_sub.c | 80 /* sign depends upon rounding mode */ in FPU_add() 133 u_char taga, tagb, signa, signb, saved_sign, sign; in FPU_sub() local 191 /* sign depends upon rounding mode */ in FPU_sub() 196 sign = signa ^ SIGN_NEG; in FPU_sub() 198 FPU_u_sub(b, a, dest, control_w, sign, expb, in FPU_sub() 287 /* Sign of answer depends upon rounding mode. */ in add_sub_specials() 291 setsign(dest, signa); /* signa may differ from the sign of a. */ in add_sub_specials() 301 setsign(dest, signb); /* signb may differ from the sign of b. */ in add_sub_specials() 313 setsign(dest, signa); /* signa may differ from the sign of a. */ in add_sub_specials() 319 setsign(dest, signa); /* signa may differ from the sign of a. */ in add_sub_specials() [all …]
|
H A D | reg_divide.c | 33 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()
|
/linux/arch/alpha/boot/ |
H A D | stdio.c | 36 #define SIGN 2 /* unsigned/signed long */ macro 45 char c, sign, tmp[66]; in number() local 56 sign = 0; in number() 57 if (type & SIGN) { in number() 59 sign = '-'; in number() 63 sign = '+'; in number() 66 sign = ' '; in number() 88 if (sign) in number() 89 *str++ = sign; in number() 256 flags |= SIGN; in vsprintf() [all …]
|
/linux/arch/powerpc/boot/ |
H A D | stdio.c | 72 #define SIGN 2 /* unsigned/signed long */ macro 81 char c,sign,tmp[66]; in number() local 92 sign = 0; in number() 93 if (type & SIGN) { in number() 95 sign = '-'; in number() 99 sign = '+'; in number() 102 sign = ' '; in number() 124 if (sign) in number() 125 *str++ = sign; in number() 292 flags |= SIGN; in vsprintf() [all …]
|
/linux/Documentation/admin-guide/ |
H A D | module-signing.rst | 68 (2) :menuselection:`Automatically sign all modules` 75 scripts/sign-file 81 sign the modules with: 84 ``CONFIG_MODULE_SIG_SHA256`` :menuselection:`Sign modules with SHA-256` 85 ``CONFIG_MODULE_SIG_SHA384`` :menuselection:`Sign modules with SHA-384` 86 ``CONFIG_MODULE_SIG_SHA512`` :menuselection:`Sign modules with SHA-512` 87 ``CONFIG_MODULE_SIG_SHA3_256`` :menuselection:`Sign modules with SHA3-256` 88 ``CONFIG_MODULE_SIG_SHA3_384`` :menuselection:`Sign modules with SHA3-384` 89 ``CONFIG_MODULE_SIG_SHA3_512`` :menuselection:`Sign modules with SHA3-512` 220 To manually sign a module, use the scripts/sign-file tool available in [all …]
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | guest_sprintf.c | 27 #define SIGN 2 /* unsigned/signed long */ macro 50 char c, sign, locase; in number() local 63 sign = 0; in number() 64 if (type & SIGN) { in number() 66 sign = '-'; in number() 70 sign = '+'; in number() 73 sign = ' '; in number() 95 if (sign) in number() 96 APPEND_BUFFER_SAFE(str, end, sign); in number() 274 flags |= SIGN; in guest_vsnprintf() [all …]
|
/linux/drivers/misc/mei/ |
H A D | vsc-fw-loader.c | 377 struct vsc_fw_sign *sign; in vsc_identify_csi_image() local 406 sign = (struct vsc_fw_sign *) in vsc_identify_csi_image() 419 if ((u8 *)sign + sizeof(*sign) > image->data + image->size) { in vsc_identify_csi_image() 424 if (le32_to_cpu(sign->magic) != VSC_MAGIC_FW) { in vsc_identify_csi_image() 436 frag->data = sign->image; in vsc_identify_csi_image() 437 frag->size = le32_to_cpu(sign->image_size); in vsc_identify_csi_image() 441 sign = (struct vsc_fw_sign *) in vsc_identify_csi_image() 442 (sign->image + le32_to_cpu(sign->image_size)); in vsc_identify_csi_image() 459 struct vsc_fw_sign *sign; in vsc_identify_ace_image() local 488 sign = (struct vsc_fw_sign *) in vsc_identify_ace_image() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | atomic.h | 49 #define ATOMIC_OP(op, asm_op, suffix, sign, ...) \ argument 60 : "r"#sign (a), "r" (&v->counter) \ 64 #define ATOMIC_OP_RETURN_RELAXED(op, asm_op, suffix, sign, ...) \ argument 75 : "r"#sign (a), "r" (&v->counter) \ 81 #define ATOMIC_FETCH_OP_RELAXED(op, asm_op, suffix, sign, ...) \ argument 92 : "r"#sign (a), "r" (&v->counter) \ 98 #define ATOMIC_OPS(op, asm_op, suffix, sign, ...) \ argument 99 ATOMIC_OP(op, asm_op, suffix, sign, ##__VA_ARGS__) \ 100 ATOMIC_OP_RETURN_RELAXED(op, asm_op, suffix, sign, ##__VA_ARGS__)\ 101 ATOMIC_FETCH_OP_RELAXED(op, asm_op, suffix, sign, ##__VA_ARGS__) [all …]
|
/linux/lib/ |
H A D | kstrtox.c | 6 * Integer starts with optional sign. 7 * kstrtou*() functions do not accept sign "-". 11 * Autodetection hints work after optional sign, but not before. 120 * may also be a plus sign, but not a minus sign. 144 * may also be a plus sign or a minus sign. 216 * may also be a plus sign, but not a minus sign. 247 * may also be a plus sign or a minus sign. 411 /* sign, base 2 representation, newline, terminator */ \
|