Home
last modified time | relevance | path

Searched refs:Sign (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/freebsd/contrib/llvm-project/libc/src/__support/
H A Dsign.h17 struct Sign { struct
21 LIBC_INLINE friend constexpr bool operator==(Sign a, Sign b) { argument
25 LIBC_INLINE friend constexpr bool operator!=(Sign a, Sign b) {
29 static const Sign POS; argument
30 static const Sign NEG; argument
32 LIBC_INLINE constexpr Sign negate() const { return Sign(!is_negative); } in negate() argument
35 LIBC_INLINE constexpr explicit Sign(bool is_negative) in Sign() function
41 LIBC_INLINE_VAR constexpr Sign Sign::NEG = Sign(true); argument
42 LIBC_INLINE_VAR constexpr Sign Sign::POS = Sign(false);
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_ml_dsa_65_wycheproof_sign.txt
H A Devppkey_ml_dsa_44_wycheproof_sign.txt
H A Devppkey_ml_dsa_87_wycheproof_sign.txt
H A Devppkey_ml_dsa_siggen.txt
H A Devppkey_slh_dsa_siggen.txt
H A Devppkey_ecx_sigalg.txt
H A Devppkey_rsa_sigalg.txt
H A Devppkey_ecdsa_sigalg.txt
H A Devppkey_dsa_sigalg.txt
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/x86_64/
H A DNextAfterLongDouble.h51 from_bits = FPBits::min_subnormal(from > to ? Sign::NEG : Sign::POS); in nextafter()
54 if (from_bits == FPBits::max_subnormal(Sign::NEG)) { in nextafter()
57 from_bits = FPBits::min_normal(Sign::NEG); in nextafter()
71 if (from_bits == FPBits::min_normal(Sign::NEG)) { in nextafter()
74 from_bits = FPBits::max_subnormal(Sign::NEG); in nextafter()
87 if (from_bits == FPBits::min_normal(Sign::POS)) { in nextafter()
88 from_bits = FPBits::max_subnormal(Sign::POS); in nextafter()
99 if (from_bits == FPBits::max_subnormal(Sign::POS)) { in nextafter()
100 from_bits = FPBits::min_normal(Sign::POS); in nextafter()
H A DNextUpDownLongDouble.h26 constexpr Sign sign = IsDown ? Sign::NEG : Sign::POS; in nextupdown()
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DFPBits.h330 LIBC_INLINE static constexpr StorageType encode(Sign sign, BiasedExponent exp,
359 LIBC_INLINE constexpr Sign sign() const {
360 return (bits & SIGN_MASK) ? Sign::NEG : Sign::POS;
362 LIBC_INLINE constexpr void set_sign(Sign signVal) {
390 LIBC_INLINE static constexpr RetT zero(Sign sign = Sign::POS) {
393 LIBC_INLINE static constexpr RetT one(Sign sign = Sign::POS) {
396 LIBC_INLINE static constexpr RetT min_subnormal(Sign sign = Sign::POS) {
399 LIBC_INLINE static constexpr RetT max_subnormal(Sign sign = Sign::POS) {
403 LIBC_INLINE static constexpr RetT min_normal(Sign sign = Sign::POS) {
406 LIBC_INLINE static constexpr RetT max_normal(Sign sign = Sign::POS) {
[all …]
H A DDivisionAndRemainderOperations.h47 const Sign result_sign = in remquo()
48 (xbits.sign() == ybits.sign() ? Sign::POS : Sign::NEG); in remquo()
53 xbits.set_sign(Sign::POS); in remquo()
54 ybits.set_sign(Sign::POS); in remquo()
82 NormalFloat<T> remainder(Sign::POS, exp + normaly.exponent, mx); in remquo()
H A Ddyadic_float.h44 Sign logical_sign) { in rounding_direction()
91 Sign sign = Sign::POS;
107 LIBC_INLINE constexpr DyadicFloat(Sign s, int e, const MantissaType &m) in DyadicFloat()
156 round(Sign result_sign, int result_exponent, in round()
200 return FPBits::max_normal(Sign::POS).get_val(); in generic_as()
201 return FPBits::inf(Sign::NEG).get_val(); in generic_as()
204 return FPBits::max_normal(Sign::NEG).get_val(); in generic_as()
205 return FPBits::inf(Sign::POS).get_val(); in generic_as()
349 FPBits<T>::create_value(Sign::POS, in fast_as()
355 FPBits<T>::create_value(Sign::POS, in fast_as()
[all …]
H A DManipulationFunctions.h145 return FPBits<T>::inf(Sign::NEG).get_val();
175 Sign sign = bits.sign();
177 if ((sign == Sign::POS && rounding_mode == FE_DOWNWARD) ||
178 (sign == Sign::NEG && rounding_mode == FE_UPWARD) ||
190 Sign sign = bits.sign();
192 if ((sign == Sign::POS && rounding_mode == FE_UPWARD) ||
193 (sign == Sign::NEG && rounding_mode == FE_DOWNWARD))
250 constexpr Sign sign = IsDown ? Sign::NEG : Sign::POS;
H A Dbfloat16.h35 Sign sign = Sign::POS; in BFloat16()
39 sign = Sign::NEG; in BFloat16()
H A Dfpbits_str.h45 const auto sign_char = [](Sign sign) -> char { in str()
63 s += sign_char(x.get_implicit_bit() ? Sign::NEG : Sign::POS); in str()
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/
H A Dadd_sub.h97 return OutFPBits::zero(Sign::NEG).get_val(); in add_or_sub()
99 return OutFPBits::zero(Sign::POS).get_val(); in add_or_sub()
122 return OutFPBits::zero(Sign::NEG).get_val(); in add_or_sub()
124 return OutFPBits::zero(Sign::POS).get_val(); in add_or_sub()
128 Sign result_sign = Sign::POS; in add_or_sub()
136 result_sign = Sign::NEG; in add_or_sub()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DLEB128.cpp31 int Sign = Value >> (8 * sizeof(Value) - 1); in getSLEB128Size() local
37 IsMore = Value != Sign || ((Byte ^ Sign) & 0x40) != 0; in getSLEB128Size()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBCD.h37 uint8_t Sign = Ptr[ByteLen - 1] & 0x0f; variable
39 if (Sign == 0x0d || Sign == 0x0b)
H A DKnownFPClass.h173 void copysign(const KnownFPClass &Sign) { in copysign()
186 SignBit = Sign.SignBit; in copysign()
189 if (Sign.isKnownNever(fcPositive | fcNan) || (SignBit && *SignBit)) in copysign()
191 if (Sign.isKnownNever(fcNegative | fcNan) || (SignBit && !*SignBit)) in copysign()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAddressingModes.h634 uint8_t Sign = (Imm >> 7) & 0x1; in getFPImmFloat() local
643 I |= Sign << 31; in getFPImmFloat()
655 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm() local
670 return ((int)Sign << 7) | (Exp << 4) | Mantissa; in getFP16Imm()
693 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm() local
710 return ((int)Sign << 7) | (Exp << 4) | Mantissa; in getFP32Imm()
721 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm() local
738 return ((int)Sign << 7) | (Exp << 4) | Mantissa; in getFP64Imm()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.cpp214 bool Sign = Imm.extractBitsAsZExtValue(1, 31); in getLoadFPImm() local
227 if (Sign) { in getLoadFPImm()
240 uint32_t Sign = 0; in getFPImm() local
242 Sign = 0b1; in getFPImm()
249 uint32_t I = Sign << 31 | Exp << 23 | Mantissa << 21; in getFPImm()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCmpInstAnalysis.cpp40 Constant *llvm::getPredForICmpCode(unsigned Code, bool Sign, Type *OpTy, in getPredForICmpCode() argument
46 case 1: Pred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getPredForICmpCode()
48 case 3: Pred = Sign ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_UGE; break; in getPredForICmpCode()
49 case 4: Pred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getPredForICmpCode()
51 case 6: Pred = Sign ? ICmpInst::ICMP_SLE : ICmpInst::ICMP_ULE; break; in getPredForICmpCode()

12345678910>>...16