Home
last modified time | relevance | path

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

1234

/external/llvm-project/flang/include/flang/Evaluate/
Dreal.h110 const Real &, Rounding rounding = defaultRounding) const;
112 const Real &y, Rounding rounding = defaultRounding) const {
116 const Real &, Rounding rounding = defaultRounding) const;
118 const Real &, Rounding rounding = defaultRounding) const;
123 const Real &, Rounding rounding = defaultRounding) const;
182 const INT &n, Rounding rounding = defaultRounding) {
249 const A &x, Rounding rounding = defaultRounding) {
315 const char *&, Rounding rounding = defaultRounding);
360 Rounding rounding = defaultRounding,
364 RealFlags Round(Rounding, const RoundingBits &, bool multiply = false);
[all …]
Dcomplex.h64 const INT &n, Rounding rounding = defaultRounding) {
72 const Complex &, Rounding rounding = defaultRounding) const;
74 const Complex &, Rounding rounding = defaultRounding) const;
76 const Complex &, Rounding rounding = defaultRounding) const;
78 const Complex &, Rounding rounding = defaultRounding) const;
Dcommon.h121 struct Rounding { struct
134 static constexpr Rounding defaultRounding;
215 Rounding round = defaultRounding, bool flush = false)
235 Rounding rounding() const { return rounding_; }
258 Rounding rounding_{defaultRounding};
Drounding-bits.h78 Rounding rounding, bool isNegative, bool isOdd) const { in MustRound()
/external/XNNPACK/bench/
Drounding.cc22 class Rounding : public benchmark::Fixture { class
24 inline Rounding() in Rounding() function in Rounding
74 class RoundingToNearestEven : public Rounding { };
75 class RoundingDown : public Rounding { };
76 class RoundingUp : public Rounding { };
77 class RoundingTowardsZero : public Rounding { };
/external/llvm-project/flang/unittests/Evaluate/
Dfp-testing.h9 using Fortran::evaluate::Rounding;
18 static void SetRounding(Rounding rounding);
Dreal.cpp48 template <typename R> void basicTests(int rm, Rounding rounding) { in basicTests()
290 void inttest(std::int64_t x, int pass, Rounding rounding) { in inttest()
348 void subsetTests(int pass, Rounding rounding, std::uint32_t opds) { in subsetTests()
513 void roundTest(int rm, Rounding rounding, std::uint32_t opds) { in roundTest()
532 roundTest(0, Rounding{RoundingMode::TiesToEven}, opds); in main()
533 roundTest(1, Rounding{RoundingMode::ToZero}, opds); in main()
534 roundTest(2, Rounding{RoundingMode::Up}, opds); in main()
535 roundTest(3, Rounding{RoundingMode::Down}, opds); in main()
Dfp-testing.cpp97 void ScopedHostFloatingPointEnvironment::SetRounding(Rounding rounding) { in SetRounding()
/external/llvm-project/flang/lib/Evaluate/
Dcomplex.cpp16 const Complex &that, Rounding rounding) const { in Add()
25 const Complex &that, Rounding rounding) const { in Subtract()
34 const Complex &that, Rounding rounding) const { in Multiply()
48 const Complex &that, Rounding rounding) const { in Divide()
Dreal.cpp58 const Real &y, Rounding rounding) const { in Add()
138 const Real &y, Rounding rounding) const { in Multiply()
198 const Real &y, Rounding rounding) const { in Divide()
279 result = Add(adjust, Rounding{mode}); in ToWholeNumber()
283 result.value.Subtract(adjust, Rounding{common::RoundingMode::ToZero}) in ToWholeNumber()
292 const Fraction &fraction, Rounding rounding, RoundingBits *roundingBits) { in Normalize()
352 Rounding rounding, const RoundingBits &bits, bool multiply) { in Round()
393 bool isNegative, int exponent, const Fraction &fraction, Rounding rounding, in NormalizeAndRound()
433 const char *&p, Rounding rounding) { in Read()
Dint-power.h20 const INT &power, Rounding rounding = defaultRounding) {
53 const REAL &base, const INT &power, Rounding rounding = defaultRounding) {
/external/llvm/include/llvm/IR/
DIntrinsicsAArch64.td173 // Vector Rounding Halving Add
188 // Vector Rounding Add High-Half
194 // Vector Saturating Rounding Doubling Multiply High
233 // Vector Rounding Subtract High-Half
309 // Vector Rounding Shift Left
313 // Vector Saturating Rounding Shift Left
323 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const
330 // Vector Rounding Narrowing Shift Right by Constant
333 // Vector Rounding Narrowing Saturating Shift Right by Constant
409 // Vector FP Rounding: only ties to even is unrepresented by a normal
DIntrinsicsARM.td333 // Vector Rounding Shift.
346 // Vector Saturating Rounding Shift.
415 // Vector Rounding
/external/harfbuzz_ng/test/shaping/data/text-rendering-tests/
DDISABLED4 # Rounding differences
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DIntrinsicsAArch64.td190 // Vector Rounding Halving Add
205 // Vector Rounding Add High-Half
211 // Vector Saturating Rounding Doubling Multiply High
250 // Vector Rounding Subtract High-Half
327 // Vector Rounding Shift Left
331 // Vector Saturating Rounding Shift Left
341 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const
348 // Vector Rounding Narrowing Shift Right by Constant
351 // Vector Rounding Narrowing Saturating Shift Right by Constant
427 // Vector FP Rounding: only ties to even is unrepresented by a normal
/external/llvm-project/llvm/test/MC/RISCV/
Drv32f-invalid.s23 # Rounding mode when a register is expected
Drv32zfh-invalid.s24 # Rounding mode when a register is expected
Drv64f-valid.s27 # Rounding modes
Drv64zfh-valid.s27 # Rounding modes
/external/llvm-project/llvm/lib/IR/
DIRBuilder.cpp800 Optional<RoundingMode> Rounding, in CreateConstrainedFPBinOp() argument
802 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPBinOp()
834 Optional<RoundingMode> Rounding, in CreateConstrainedFPCast() argument
854 Value *RoundingV = getConstrainedFPRounding(Rounding); in CreateConstrainedFPCast()
897 Optional<RoundingMode> Rounding, in CreateConstrainedFPCall() argument
914 UseArgs.push_back(getConstrainedFPRounding(Rounding)); in CreateConstrainedFPCall()
DConstantRange.cpp192 APInt::Rounding::UP), in makeExactMulNUWRegion()
194 APInt::Rounding::DOWN) + 1); in makeExactMulNUWRegion()
213 Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
214 Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
216 Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
217 Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
/external/llvm-project/llvm/include/llvm/IR/
DIntrinsicsAArch64.td209 // Vector Rounding Halving Add
224 // Vector Rounding Add High-Half
232 // Vector Saturating Rounding Doubling Multiply High
273 // Vector Rounding Subtract High-Half
350 // Vector Rounding Shift Left
354 // Vector Saturating Rounding Shift Left
364 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const
371 // Vector Rounding Narrowing Shift Right by Constant
374 // Vector Rounding Narrowing Saturating Shift Right by Constant
450 // Vector FP Rounding: only ties to even is unrepresented by a normal
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantRange.cpp191 APInt::Rounding::UP), in makeExactMulNUWRegion()
193 APInt::Rounding::DOWN) + 1); in makeExactMulNUWRegion()
212 Lower = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
213 Upper = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
215 Lower = APIntOps::RoundingSDiv(MinValue, V, APInt::Rounding::UP); in makeExactMulNSWRegion()
216 Upper = APIntOps::RoundingSDiv(MaxValue, V, APInt::Rounding::DOWN); in makeExactMulNSWRegion()
/external/llvm-project/llvm/unittests/ADT/
DAPIntTest.cpp2631 EXPECT_EQ(0, APIntOps::RoundingUDiv(Zero, A, APInt::Rounding::UP)); in TEST()
2632 EXPECT_EQ(0, APIntOps::RoundingUDiv(Zero, A, APInt::Rounding::DOWN)); in TEST()
2633 EXPECT_EQ(0, APIntOps::RoundingUDiv(Zero, A, APInt::Rounding::TOWARD_ZERO)); in TEST()
2638 APInt Quo = APIntOps::RoundingUDiv(A, B, APInt::Rounding::UP); in TEST()
2647 EXPECT_EQ(Quo, APIntOps::RoundingUDiv(A, B, APInt::Rounding::TOWARD_ZERO)); in TEST()
2648 EXPECT_EQ(Quo, APIntOps::RoundingUDiv(A, B, APInt::Rounding::DOWN)); in TEST()
2660 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::UP)); in TEST()
2661 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::DOWN)); in TEST()
2662 EXPECT_EQ(0, APIntOps::RoundingSDiv(Zero, A, APInt::Rounding::TOWARD_ZERO)); in TEST()
2672 APInt Quo = APIntOps::RoundingSDiv(A, B, APInt::Rounding::UP); in TEST()
[all …]
/external/llvm-project/llvm/lib/Support/
DAPInt.cpp2817 APInt::Rounding RM) { in RoundingUDiv()
2820 case APInt::Rounding::DOWN: in RoundingUDiv()
2821 case APInt::Rounding::TOWARD_ZERO: in RoundingUDiv()
2823 case APInt::Rounding::UP: { in RoundingUDiv()
2835 APInt::Rounding RM) { in RoundingSDiv()
2837 case APInt::Rounding::DOWN: in RoundingSDiv()
2838 case APInt::Rounding::UP: { in RoundingSDiv()
2848 if (RM == APInt::Rounding::DOWN) { in RoundingSDiv()
2858 case APInt::Rounding::TOWARD_ZERO: in RoundingSDiv()

1234