Home
last modified time | relevance | path

Searched refs:Rounding (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/gdtoa/
H A Dgdtoa_fltrnds.h2 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 Ddtoa.c134 int Rounding; local
136 Rounding = Flt_Rounds;
138 Rounding = 1;
191 if (Rounding >= 2) {
193 Rounding = Rounding == 2 ? 0 : 2;
195 if (Rounding != 2)
196 Rounding = 0;
540 && Rounding == 1
633 && Rounding >= 1
683 if (!Rounding)
[all …]
H A Dg_ddfmt.c48 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 Dstrtod.c132 int Rounding; local
134 Rounding = Flt_Rounds;
136 Rounding = 1;
443 if (Rounding >= 2) {
445 Rounding = Rounding == 2 ? 0 : 2;
447 if (Rounding != 2)
448 Rounding = 0;
464 switch(Rounding) {
599 if (Rounding != 1)
674 if (Rounding) {
[all …]
H A Dprintf.c0519 #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 DInstructionSimplify.h93 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
100 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
107 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
116 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
123 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
130 RoundingMode Rounding = RoundingMode::NearestTiesToEven);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5618 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFAddInst()
5684 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFSubInst()
5794 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFMulInst()
5807 Rounding); in simplifyFAddInst()
5815 Rounding); in simplifyFSubInst()
5823 Rounding); in simplifyFMulInst()
5831 Rounding); in simplifyFMAFMul()
5839 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFDivInst()
5890 Rounding); in simplifyFDivInst()
5898 if (isDefaultFPEnvironment(ExBehavior, Rounding)) in simplifyFRemInst()
[all …]
/freebsd/lib/libc/softfloat/
H A Dsoftfloat.txt49 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/compiler-rt/lib/builtins/
H A Dfp_trunc_impl.inc101 // Rounding has changed the exponent.
146 // Rounding has changed the exponent.
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp2741 APInt::Rounding RM) { in RoundingUDiv()
2744 case APInt::Rounding::DOWN: in RoundingUDiv()
2745 case APInt::Rounding::TOWARD_ZERO: in RoundingUDiv()
2747 case APInt::Rounding::UP: { in RoundingUDiv()
2759 APInt::Rounding RM) { in RoundingSDiv()
2761 case APInt::Rounding::DOWN: in RoundingSDiv()
2762 case APInt::Rounding::UP: { in RoundingSDiv()
2772 if (RM == APInt::Rounding::DOWN) { in RoundingSDiv()
2782 case APInt::Rounding::TOWARD_ZERO: in RoundingSDiv()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp970 std::optional<RoundingMode> Rounding, in CreateConstrainedFPBinOp() argument
972 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPBinOp()
1021 std::optional<RoundingMode> Rounding, in CreateConstrainedFPCast() argument
1041 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPCast()
1084 std::optional<RoundingMode> Rounding, in CreateConstrainedFPCall() argument
1100 UseArgs.push_back(getConstrainedFPRounding(Rounding)); in CreateConstrainedFPCall()
H A DIntrinsicInst.cpp324 std::optional<RoundingMode> Rounding = getRoundingMode(); in isDefaultFPEnvironment() local
325 if (Rounding) { in isDefaultFPEnvironment()
326 if (*Rounding != RoundingMode::NearestTiesToEven) in isDefaultFPEnvironment()
H A DConstantRange.cpp255 APInt::Rounding::UP), in makeExactMulNUWRegion()
257 APInt::Rounding::DOWN) + 1); in makeExactMulNUWRegion()
275 Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
276 Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
278 Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
279 Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp460 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 Darm_fp16.td36 // Rounding
H A Darm_neon.td1321 // 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 DIntrinsicsAArch64.td248 // Vector Rounding Halving Add
263 // Vector Rounding Add High-Half
271 // Vector Saturating Rounding Doubling Multiply High
315 // Vector Rounding Subtract High-Half
392 // Vector Rounding Shift Left
396 // Vector Saturating Rounding Shift Left
406 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const
413 // Vector Rounding Narrowing Shift Right by Constant
416 // Vector Rounding Narrowing Saturating Shift Right by Constant
489 // v8.5-A Vector FP Rounding
H A DIRBuilder.h1285 Value *getConstrainedFPRounding(std::optional<RoundingMode> Rounding) { in getConstrainedFPRounding() argument
1288 if (Rounding) in getConstrainedFPRounding()
1289 UseRounding = *Rounding; in getConstrainedFPRounding()
1707 std::optional<RoundingMode> Rounding = std::nullopt,
2212 std::optional<RoundingMode> Rounding = std::nullopt,
2433 std::optional<RoundingMode> Rounding = std::nullopt,
H A DIntrinsicsARM.td598 // Vector Rounding Shift.
611 // Vector Saturating Rounding Shift.
680 // Vector and Scalar Rounding.
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h88 enum class Rounding { enum
2237 APInt RoundingUDiv(const APInt &A, const APInt &B, APInt::Rounding RM);
2240 APInt RoundingSDiv(const APInt &A, const APInt &B, APInt::Rounding RM);
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchFloat32InstrInfo.td329 // FP Rounding
H A DLoongArchFloat64InstrInfo.td314 // FP Rounding
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.h368 enum Rounding { enum
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVScheduleV.td381 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation
608 // 12.3. Vector Single-Width Fractional Multiply with Rounding and Saturation
/freebsd/contrib/bc/manuals/
H A Dalgorithms.md264 ### Rounding (`bc` Math Library 2 Only)

12