Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 25 of 109) sorted by relevance

12345

/external/llvm/include/llvm/ADT/
DAPFloat.h160 enum roundingMode { enum
297 opStatus add(const APFloat &, roundingMode);
298 opStatus subtract(const APFloat &, roundingMode);
299 opStatus multiply(const APFloat &, roundingMode);
300 opStatus divide(const APFloat &, roundingMode);
305 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
306 opStatus roundToIntegral(roundingMode);
363 opStatus convert(const fltSemantics &, roundingMode, bool *);
364 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode,
366 opStatus convertToInteger(APSInt &, roundingMode, bool *) const;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DRoundingUtils.java63 int roundingMode, in getRoundingDirection() argument
65 switch (roundingMode) { in getRoundingDirection()
131 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
132 switch (roundingMode) { in roundsAtMidpoint()
177 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local
178 if (roundingMode == null) in getMathContextOrUnlimited()
179 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited()
180 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited()
197 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local
198 if (roundingMode == null) in getMathContextOr34Digits()
[all …]
DMacroProps.java28 public RoundingMode roundingMode; field in MacroProps
58 if (roundingMode == null) in fallback()
59 roundingMode = fallback.roundingMode; in fallback()
92 roundingMode, in hashCode()
120 && Objects.equals(roundingMode, other.roundingMode) in equals()
DDecimalFormatProperties.java131 private transient RoundingMode roundingMode; field in DecimalFormatProperties
203 roundingMode = null; in _clear()
249 roundingMode = other.roundingMode; in _copyFrom()
296 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals()
359 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode()
576 return roundingMode; in getRoundingMode()
1313 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
1314 this.roundingMode = roundingMode; in setRoundingMode()
/external/llvm-project/llvm/include/llvm/ADT/
DAPFloat.h188 using roundingMode = llvm::RoundingMode; member
190 static constexpr roundingMode rmNearestTiesToEven =
192 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
193 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
194 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
195 static constexpr roundingMode rmNearestTiesToAway =
275 opStatus add(const IEEEFloat &, roundingMode);
276 opStatus subtract(const IEEEFloat &, roundingMode);
277 opStatus multiply(const IEEEFloat &, roundingMode);
278 opStatus divide(const IEEEFloat &, roundingMode);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java61 int roundingMode, in getRoundingDirection() argument
63 switch (roundingMode) { in getRoundingDirection()
129 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
130 switch (roundingMode) { in roundsAtMidpoint()
175 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local
176 if (roundingMode == null) in getMathContextOrUnlimited()
177 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited()
178 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited()
195 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local
196 if (roundingMode == null) in getMathContextOr34Digits()
[all …]
DMacroProps.java24 public RoundingMode roundingMode; field in MacroProps
54 if (roundingMode == null) in fallback()
55 roundingMode = fallback.roundingMode; in fallback()
88 roundingMode, in hashCode()
116 && Objects.equals(roundingMode, other.roundingMode) in equals()
DDecimalFormatProperties.java126 private transient RoundingMode roundingMode; field in DecimalFormatProperties
198 roundingMode = null; in _clear()
244 roundingMode = other.roundingMode; in _copyFrom()
291 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals()
354 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode()
571 return roundingMode; in getRoundingMode()
1308 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
1309 this.roundingMode = roundingMode; in setRoundingMode()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPFloat.h185 enum roundingMode { enum
270 opStatus add(const IEEEFloat &, roundingMode);
271 opStatus subtract(const IEEEFloat &, roundingMode);
272 opStatus multiply(const IEEEFloat &, roundingMode);
273 opStatus divide(const IEEEFloat &, roundingMode);
278 opStatus fusedMultiplyAdd(const IEEEFloat &, const IEEEFloat &, roundingMode);
279 opStatus roundToIntegral(roundingMode);
295 opStatus convert(const fltSemantics &, roundingMode, bool *);
297 roundingMode, bool *) const;
298 opStatus convertFromAPInt(const APInt &, bool, roundingMode);
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPFloat.h161 enum roundingMode { enum
245 opStatus add(const IEEEFloat &, roundingMode);
246 opStatus subtract(const IEEEFloat &, roundingMode);
247 opStatus multiply(const IEEEFloat &, roundingMode);
248 opStatus divide(const IEEEFloat &, roundingMode);
253 opStatus fusedMultiplyAdd(const IEEEFloat &, const IEEEFloat &, roundingMode);
254 opStatus roundToIntegral(roundingMode);
311 opStatus convert(const fltSemantics &, roundingMode, bool *);
312 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode,
314 opStatus convertToInteger(APSInt &, roundingMode, bool *) const;
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DShortDuration.java110 public abstract long to(TimeUnit unit, RoundingMode roundingMode); in to() argument
142 public abstract ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode); in times() argument
151 public abstract ShortDuration dividedBy(long divisor, RoundingMode roundingMode); in dividedBy() argument
160 public abstract ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode); in dividedBy() argument
165 @Override public long to(TimeUnit unit, RoundingMode roundingMode) {
178 @Override public ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode) {
181 @Override public ShortDuration dividedBy(long divisor, RoundingMode roundingMode) {
182 return dividedBy(new BigDecimal(divisor), roundingMode);
184 @Override public ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode) {
214 @Override public long to(TimeUnit unit, RoundingMode roundingMode) { in to() argument
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java208 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
209 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode()
211 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode()
213 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode()
215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
217 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode()
219 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode()
221 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode()
223 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
DDecimalFormatICU.java366 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
367 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode()
369 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode()
371 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode()
373 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
375 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode()
377 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode()
379 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode()
381 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
/external/icu/icu4c/source/i18n/
Dnumber_roundingutils.h46 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument
51 switch (roundingMode) { in getRoundingDirection()
125 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
126 switch (roundingMode) { in roundsAtMidpoint()
159 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
Dnumber_decimalquantity.h87 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode,
100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
Dnumber_mapper.cpp97 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local
150 macros.roundingMode = roundingMode; in oldToNew()
244 macros.roundingMode = roundingMode; in oldToNew()
275 exportedProperties->roundingMode = roundingMode; in oldToNew()
/external/icu/libicu/cts_headers/
Dnumber_roundingutils.h46 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument
51 switch (roundingMode) { in getRoundingDirection()
125 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
126 switch (roundingMode) { in roundsAtMidpoint()
159 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
Dnumber_decimalquantity.h87 void roundToIncrement(double roundingIncrement, RoundingMode roundingMode,
100 void roundToNickel(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
109 void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, UErrorCode& status);
418 …void roundToMagnitude(int32_t magnitude, RoundingMode roundingMode, bool nickel, UErrorCode& statu…
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DBigReal.java53 private RoundingMode roundingMode = RoundingMode.HALF_UP; field in BigReal
198 return roundingMode; in getRoundingMode()
206 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
207 this.roundingMode = roundingMode; in setRoundingMode()
241 return new BigReal(d.divide(a.d, scale, roundingMode)); in divide()
/external/OpenCL-CTS/test_conformance/conversions/
Dfplib.h27 }roundingMode; typedef
29 float qcom_u64_2_f32(uint64_t data, bool sat, roundingMode rnd);
30 float qcom_s64_2_f32(int64_t data, bool sat, roundingMode rnd);
/external/icu/android_icu4j/src/main/java/android/icu/math/
DMathContext.java287 int roundingMode; field in MathContext
446 roundingMode=setroundingmode; in MathContext()
505 return roundingMode; in getRoundingMode()
560 if (roundingMode==ROUNDS[r]) in toString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DMathContext.java298 int roundingMode; field in MathContext
462 roundingMode=setroundingmode; in MathContext()
525 return roundingMode; in getRoundingMode()
581 if (roundingMode==ROUNDS[r]) in toString()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java601 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in RuleBasedNumberFormat
967 out.writeInt(this.roundingMode); in writeObject()
987 roundingMode = in.readInt(); in readObject()
1502 return roundingMode; in getRoundingMode()
1516 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
1517 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { in setRoundingMode()
1518 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); in setRoundingMode()
1521 this.roundingMode = roundingMode; in setRoundingMode()
1915 …gDecimal(Double.toString(number)).setScale(getMaximumFractionDigits(), roundingMode).doubleValue(); in format()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPFloat.cpp1271 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow()
1295 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1330 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize()
1686 roundingMode rounding_mode, in addOrSubtract()
1716 roundingMode rounding_mode) { in add()
1722 roundingMode rounding_mode) { in subtract()
1728 roundingMode rounding_mode) { in multiply()
1746 roundingMode rounding_mode) { in divide()
1823 roundingMode rounding_mode) { in fusedMultiplyAdd()
1864 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterSettings.java221 public T roundingMode(RoundingMode roundingMode) { in roundingMode() method in NumberFormatterSettings
222 return create(KEY_ROUNDING_MODE, roundingMode); in roundingMode()
619 macros.roundingMode = (RoundingMode) current.value; in resolve()

12345