/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 | 95 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 102 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 109 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 118 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 125 RoundingMode Rounding = RoundingMode::NearestTiesToEven); 132 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 5612 RoundingMode Rounding) { in simplifyFPOp() argument 5631 if (isDefaultFPEnvironment(ExBehavior, Rounding)) { in simplifyFPOp() 5654 RoundingMode Rounding = RoundingMode::NearestTiesToEven) { in simplifyFAddInst() argument 5655 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFAddInst() 5659 if (Constant *C = simplifyFPOp({Op0, Op1}, FMF, Q, ExBehavior, Rounding)) in simplifyFAddInst() 5668 (!canRoundingModeBe(Rounding, RoundingMode::TowardNegative) || in simplifyFAddInst() 5679 if (!isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFAddInst() 5720 RoundingMode Rounding = RoundingMode::NearestTiesToEven) { in simplifyFSubInst() argument 5721 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFSubInst() 5725 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/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 | 2733 APInt::Rounding RM) { in RoundingUDiv() 2736 case APInt::Rounding::DOWN: in RoundingUDiv() 2737 case APInt::Rounding::TOWARD_ZERO: in RoundingUDiv() 2739 case APInt::Rounding::UP: { in RoundingUDiv() 2751 APInt::Rounding RM) { in RoundingSDiv() 2753 case APInt::Rounding::DOWN: in RoundingSDiv() 2754 case APInt::Rounding::UP: { in RoundingSDiv() 2764 if (RM == APInt::Rounding::DOWN) { in RoundingSDiv() 2774 case APInt::Rounding::TOWARD_ZERO: in RoundingSDiv()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | IRBuilder.cpp | 973 std::optional<RoundingMode> Rounding, in CreateConstrainedFPBinOp() argument 975 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPBinOp() 1024 std::optional<RoundingMode> Rounding, in CreateConstrainedFPCast() argument 1034 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPCast() 1076 std::optional<RoundingMode> Rounding, in CreateConstrainedFPCall() argument 1083 UseArgs.push_back(getConstrainedFPRounding(Rounding)); in CreateConstrainedFPCall()
|
H A D | IntrinsicInst.cpp | 333 std::optional<RoundingMode> Rounding = getRoundingMode(); in isDefaultFPEnvironment() local 334 if (Rounding) { in isDefaultFPEnvironment() 335 if (*Rounding != RoundingMode::NearestTiesToEven) in isDefaultFPEnvironment()
|
H A D | ConstantRange.cpp | 284 APInt::Rounding::UP), in makeExactMulNUWRegion() 286 APInt::Rounding::DOWN) + 1); in makeExactMulNUWRegion() 304 Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion() 305 Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion() 307 Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion() 308 Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 460 bool Rounding) const -> Value *; 462 bool Rounding) const -> Value *; 1811 bool Rounding = Op.RoundAt.has_value(); in processFxpMulChopped() local 1818 QMul = createMulQ15(Builder, Op.X, Op.Y, Rounding); in processFxpMulChopped() 1820 QMul = createMulQ31(Builder, Op.X, Op.Y, Rounding); in processFxpMulChopped() 1846 if (Rounding) { in processFxpMulChopped() 1903 bool Rounding) const -> Value * { in createMulQ15() 1909 if (!Rounding || X.Sgn == Unsigned || Y.Sgn == Unsigned) in createMulQ15() 1918 bool Rounding) const -> Value * { in createMulQ31() 1928 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 | 1321 // Scalar Saturating Rounding Shift Left 1323 // Scalar Shift Rounding Left 1331 // Signed/Unsigned Rounding Shift Right (Immediate) 1336 // Signed/Unsigned Rounding Shift Right and Accumulate (Immediate) 1401 // Scalar Integer Saturating Rounding Doubling Multiply Half High 1406 // Signed Saturating Rounding Doubling Multiply Accumulate Returning High Half 1410 // Signed Saturating Rounding Doubling Multiply Subtract Returning High Half 1629 // Scalar Integer Saturating Rounding Doubling Multiply Half High 1636 // Signed Saturating Rounding Doubling Multiply Accumulate Returning High Half 1642 // Signed Saturating Rounding Doubling Multiply Subtract Returning High Half
|
/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 | 1296 Value *getConstrainedFPRounding(std::optional<RoundingMode> Rounding) { in getConstrainedFPRounding() argument 1299 if (Rounding) in getConstrainedFPRounding() 1300 UseRounding = *Rounding; in getConstrainedFPRounding() 1718 std::optional<RoundingMode> Rounding = std::nullopt, 2234 std::optional<RoundingMode> Rounding = std::nullopt, 2455 std::optional<RoundingMode> Rounding = std::nullopt,
|
H A D | IntrinsicsARM.td | 598 // Vector Rounding Shift. 611 // Vector Saturating Rounding Shift. 680 // Vector and Scalar Rounding.
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 90 enum class Rounding { enum 2293 APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM); 2296 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchFloat32InstrInfo.td | 329 // FP Rounding
|
H A D | LoongArchFloat64InstrInfo.td | 314 // FP Rounding
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 367 enum Rounding { enum
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVScheduleV.td | 410 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation 639 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation
|
/freebsd/contrib/bc/manuals/ |
H A D | algorithms.md | 264 ### Rounding (`bc` Math Library 2 Only)
|