| /freebsd/contrib/gdtoa/ |
| H A D | gdtoa_fltrnds.h | 2 int Rounding; variable 4 Rounding = Flt_Rounds; 6 Rounding = 1; 8 case FE_TOWARDZERO: Rounding = 0; break; 9 case FE_UPWARD: Rounding = 2; break; 10 case FE_DOWNWARD: Rounding = 3; 14 if (Rounding != 1) { 17 fpi1.rounding = Rounding;
|
| H A D | dtoa.c | 72 #define Rounding Flt_Rounds macro 134 int Rounding; local 136 Rounding = Flt_Rounds; 138 Rounding = 1; 140 case FE_TOWARDZERO: Rounding = 0; break; 141 case FE_UPWARD: Rounding = 2; break; 142 case FE_DOWNWARD: Rounding = 3; 191 if (Rounding >= 2) { 193 Rounding = Rounding == 2 ? 0 : 2; 195 if (Rounding != 2) [all …]
|
| H A D | g_ddfmt.c | 48 int Rounding; local 50 Rounding = Flt_Rounds; 52 Rounding = 1; 54 case FE_TOWARDZERO: Rounding = 0; break; 55 case FE_UPWARD: Rounding = 2; break; 56 case FE_DOWNWARD: Rounding = 3; 60 #define Rounding FPI_Round_near macro 163 fpi.rounding = Rounding;
|
| H A D | strtod.c | 59 #define Rounding Flt_Rounds macro 132 int Rounding; local 134 Rounding = Flt_Rounds; 136 Rounding = 1; 138 case FE_TOWARDZERO: Rounding = 0; break; 139 case FE_UPWARD: Rounding = 2; break; 140 case FE_DOWNWARD: Rounding = 3; 180 fpi1.rounding = Rounding; 443 if (Rounding >= 2) { 445 Rounding = Rounding == 2 ? 0 : 2; [all …]
|
| H A D | printf.c0 | 519 #define RoundCheck if (Rounding == -1) Rounding = Flt_Rounds; if (Rounding != 1){\ 520 fpi1 = *fpb.fpi; fpi1.rounding = Rounding; fpb.fpi = &fpi1;} 522 #define RoundCheck if (Rounding == -1) { Rounding = 1; switch((fegetround()) {\ 523 case FE_TOWARDZERO: Rounding = 0; break;\ 524 case FE_UPWARD: Rounding = 2; break;\ 525 case FE_DOWNWARD: Rounding = 3; }}\ 526 if (Rounding != 1){\ 527 fpi1 = *fpb.fpi; fpi1.rounding = Rounding; fpb.fpi = &fpi1;} 697 int Rounding = -1;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 98 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 105 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 112 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 122 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 129 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 136 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 5649 RoundingMode Rounding) { in simplifyFPOp() argument 5668 if (isDefaultFPEnvironment(ExBehavior, Rounding)) { in simplifyFPOp() 5691 RoundingMode Rounding = RoundingMode::NearestTiesToEven) { in simplifyFAddInst() argument 5692 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFAddInst() 5696 if (Constant *C = simplifyFPOp({Op0, Op1}, FMF, Q, ExBehavior, Rounding)) in simplifyFAddInst() 5705 (!canRoundingModeBe(Rounding, RoundingMode::TowardNegative) || in simplifyFAddInst() 5716 if (!isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFAddInst() 5757 RoundingMode Rounding = RoundingMode::NearestTiesToEven) { in simplifyFSubInst() argument 5758 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFSubInst() 5762 if (Constant *C = simplifyFPOp({Op0, Op1}, FMF, Q, ExBehavior, Rounding)) in simplifyFSubInst() [all …]
|
| /freebsd/lib/libc/softfloat/ |
| H A D | softfloat.txt | 49 Rounding Modes 50 Extended Double-Precision Rounding Precision 133 Rounding Modes 144 Extended Double-Precision Rounding Precision 257 Rounding of the extended double-precision (`floatx80') functions is affected
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | IRBuilder.cpp | 885 const Twine &Name, MDNode *FPMathTag, std::optional<RoundingMode> Rounding, in CreateConstrainedFPBinOp() argument 887 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPBinOp() 902 std::optional<RoundingMode> Rounding, in CreateConstrainedFPIntrinsic() argument 904 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPIntrinsic() 951 const Twine &Name, MDNode *FPMathTag, std::optional<RoundingMode> Rounding, in CreateConstrainedFPCast() argument 959 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPCast() 1004 std::optional<RoundingMode> Rounding, in CreateConstrainedFPCall() argument 1009 UseArgs.push_back(getConstrainedFPRounding(Rounding)); in CreateConstrainedFPCall()
|
| H A D | IntrinsicInst.cpp | 306 std::optional<RoundingMode> Rounding = getRoundingMode(); in isDefaultFPEnvironment() local 307 if (Rounding) { in isDefaultFPEnvironment() 308 if (*Rounding != RoundingMode::NearestTiesToEven) in isDefaultFPEnvironment()
|
| H A D | ConstantRange.cpp | 295 APInt::Rounding::UP), in makeExactMulNUWRegion() 297 APInt::Rounding::DOWN) + 1); in makeExactMulNUWRegion() 315 Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion() 316 Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion() 318 Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion() 319 Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SlowDynamicAPInt.cpp | 199 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::UP)); in ceilDiv() 207 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::DOWN)); in floorDiv()
|
| H A D | APInt.cpp | 2764 APInt::Rounding RM) { in RoundingUDiv() 2767 case APInt::Rounding::DOWN: in RoundingUDiv() 2768 case APInt::Rounding::TOWARD_ZERO: in RoundingUDiv() 2770 case APInt::Rounding::UP: { in RoundingUDiv() 2782 APInt::Rounding RM) { in RoundingSDiv() 2784 case APInt::Rounding::DOWN: in RoundingSDiv() 2785 case APInt::Rounding::UP: { in RoundingSDiv() 2795 if (RM == APInt::Rounding::DOWN) { in RoundingSDiv() 2805 case APInt::Rounding::TOWARD_ZERO: in RoundingSDiv()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 460 bool Rounding) const -> Value *; 462 bool Rounding) const -> Value *; 1812 bool Rounding = Op.RoundAt.has_value(); in processFxpMulChopped() local 1819 QMul = createMulQ15(Builder, Op.X, Op.Y, Rounding); in processFxpMulChopped() 1821 QMul = createMulQ31(Builder, Op.X, Op.Y, Rounding); in processFxpMulChopped() 1847 if (Rounding) { in processFxpMulChopped() 1904 bool Rounding) const -> Value * { in createMulQ15() 1910 if (!Rounding || X.Sgn == Unsigned || Y.Sgn == Unsigned) in createMulQ15() 1919 bool Rounding) const -> Value * { in createMulQ31() 1929 auto V6_vmpyo_acc = Rounding in createMulQ31()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | arm_fp16.td | 36 // Rounding
|
| H A D | arm_neon.td | 1332 // Scalar Saturating Rounding Shift Left 1334 // Scalar Shift Rounding Left 1343 // Signed/Unsigned Rounding Shift Right (Immediate) 1350 // Signed/Unsigned Rounding Shift Right and Accumulate (Immediate) 1431 // Scalar Integer Saturating Rounding Doubling Multiply Half High 1436 // Signed Saturating Rounding Doubling Multiply Accumulate Returning High Half 1440 // Signed Saturating Rounding Doubling Multiply Subtract Returning High Half 1644 // Scalar Integer Saturating Rounding Doubling Multiply Half High 1649 // Signed Saturating Rounding Doubling Multiply Accumulate Returning High Half 1652 // Signed Saturating Rounding Doubling Multiply Subtract Returning High Half
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 88 enum class Rounding { enum 2348 LLVM_ABI APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM); 2351 LLVM_ABI APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IntrinsicsAArch64.td | 268 // Vector Rounding Halving Add 283 // Vector Rounding Add High-Half 291 // Vector Saturating Rounding Doubling Multiply High 335 // Vector Rounding Subtract High-Half 412 // Vector Rounding Shift Left 416 // Vector Saturating Rounding Shift Left 426 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const 433 // Vector Rounding Narrowing Shift Right by Constant 436 // Vector Rounding Narrowing Saturating Shift Right by Constant 509 // v8.5-A Vector FP Rounding
|
| H A D | IRBuilder.h | 1372 Value *getConstrainedFPRounding(std::optional<RoundingMode> Rounding) { in getConstrainedFPRounding() argument 1375 if (Rounding) in getConstrainedFPRounding() 1376 UseRounding = *Rounding; in getConstrainedFPRounding() 1772 std::optional<RoundingMode> Rounding = std::nullopt, 1778 std::optional<RoundingMode> Rounding = std::nullopt, 2312 std::optional<RoundingMode> Rounding = std::nullopt, 2547 std::optional<RoundingMode> Rounding = std::nullopt,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchFloat64InstrInfo.td | 318 // FP Rounding
|
| H A D | LoongArchFloat32InstrInfo.td | 337 // FP Rounding
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.h | 370 enum Rounding { enum
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVScheduleV.td | 413 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation 642 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation
|
| H A D | RISCVInstrInfoF.td | 66 // Used for FP_TO_S/UINT and FP_TO_S/UINT_SAT lowering. Rounding mode 75 // range inputs. These are used for FP_TO_S/UINT_SAT lowering. Rounding mode
|
| H A D | RISCVInstrInfoVVLPatterns.td | 174 // Rounding averaging adds of signed integers. 176 // Rounding averaging adds of unsigned integers. 336 SDTCisVT<4, XLenVT> // Rounding mode 346 SDTCisVT<4, XLenVT> // Rounding mode 2431 // Rounding mode here is arbitrary since we aren't shifting out any bits. 2567 // Rounding without exception to implement nearbyint.
|