Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPFloat.h150 enum roundingMode { enum
268 opStatus add(const APFloat &, roundingMode);
269 opStatus subtract(const APFloat &, roundingMode);
270 opStatus multiply(const APFloat &, roundingMode);
271 opStatus divide(const APFloat &, roundingMode);
275 opStatus mod(const APFloat &, roundingMode);
276 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
284 opStatus convert(const fltSemantics &, roundingMode, bool *);
286 roundingMode, bool *) const;
287 opStatus convertToInteger(APSInt&, roundingMode, bool *) const;
[all …]
/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.java60 int roundingMode, in getRoundingDirection() argument
62 switch (roundingMode) { in getRoundingDirection()
128 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
129 switch (roundingMode) { in roundsAtMidpoint()
174 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local
175 if (roundingMode == null) in getMathContextOrUnlimited()
176 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited()
177 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited()
194 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local
195 if (roundingMode == null) in getMathContextOr34Digits()
[all …]
DMacroProps.java28 public RoundingMode roundingMode; field in MacroProps
57 if (roundingMode == null) in fallback()
58 roundingMode = fallback.roundingMode; in fallback()
89 roundingMode, in hashCode()
116 && Objects.equals(roundingMode, other.roundingMode) in equals()
DDecimalFormatProperties.java124 private transient RoundingMode roundingMode; field in DecimalFormatProperties
196 roundingMode = null; in _clear()
242 roundingMode = other.roundingMode; in _copyFrom()
289 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals()
352 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode()
569 return roundingMode; in getRoundingMode()
1306 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
1307 this.roundingMode = roundingMode; in setRoundingMode()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java58 int roundingMode, in getRoundingDirection() argument
60 switch (roundingMode) { in getRoundingDirection()
126 public static boolean roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
127 switch (roundingMode) { in roundsAtMidpoint()
172 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOrUnlimited() local
173 if (roundingMode == null) in getMathContextOrUnlimited()
174 roundingMode = RoundingMode.HALF_EVEN; in getMathContextOrUnlimited()
175 mathContext = MATH_CONTEXT_BY_ROUNDING_MODE_UNLIMITED[roundingMode.ordinal()]; in getMathContextOrUnlimited()
192 RoundingMode roundingMode = properties.getRoundingMode(); in getMathContextOr34Digits() local
193 if (roundingMode == null) in getMathContextOr34Digits()
[all …]
DMacroProps.java24 public RoundingMode roundingMode; field in MacroProps
53 if (roundingMode == null) in fallback()
54 roundingMode = fallback.roundingMode; in fallback()
85 roundingMode, in hashCode()
112 && Objects.equals(roundingMode, other.roundingMode) in equals()
DDecimalFormatProperties.java119 private transient RoundingMode roundingMode; field in DecimalFormatProperties
191 roundingMode = null; in _clear()
237 roundingMode = other.roundingMode; in _copyFrom()
284 eq = eq && _equalsHelper(roundingMode, other.roundingMode); in _equals()
347 hashCode ^= _hashCodeHelper(roundingMode); in _hashCode()
564 return roundingMode; in getRoundingMode()
1301 public DecimalFormatProperties setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
1302 this.roundingMode = roundingMode; in setRoundingMode()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPFloat.h174 enum roundingMode { enum
254 opStatus add(const IEEEFloat &, roundingMode);
255 opStatus subtract(const IEEEFloat &, roundingMode);
256 opStatus multiply(const IEEEFloat &, roundingMode);
257 opStatus divide(const IEEEFloat &, roundingMode);
262 opStatus fusedMultiplyAdd(const IEEEFloat &, const IEEEFloat &, roundingMode);
263 opStatus roundToIntegral(roundingMode);
279 opStatus convert(const fltSemantics &, roundingMode, bool *);
281 roundingMode, bool *) const;
282 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.h45 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument
47 switch (roundingMode) { in getRoundingDirection()
121 inline bool roundsAtMidpoint(int roundingMode) { in roundsAtMidpoint() argument
122 switch (roundingMode) { in roundsAtMidpoint()
152 RoundingImpl(const Precision& precision, UNumberFormatRoundingMode roundingMode,
Dnumber_mapper.cpp105 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew() local
156 precision = precision.withMode(roundingMode); in oldToNew()
235 macros.precision = Precision::unlimited().withMode(roundingMode); in oldToNew()
238 … macros.precision = Precision::constructSignificant(1, maxFrac_ + 1).withMode(roundingMode); in oldToNew()
248 … macros.precision = Precision::constructSignificant(minSig_, maxSig_).withMode(roundingMode); in oldToNew()
280 exportedProperties->roundingMode = roundingMode; in oldToNew()
Dnumber_skeletons.h175 UNumberFormatRoundingMode roundingMode(skeleton::StemEnum stem);
193 void roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb);
284 static bool roundingMode(const MacroProps& macros, UnicodeString& sb, UErrorCode& status);
311 bool roundingMode = false; member
/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/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/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DMathContext.java298 int roundingMode; field in MathContext
462 roundingMode=setroundingmode; in MathContext()
525 return roundingMode; in getRoundingMode()
580 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/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterSettings.java245 public T roundingMode(RoundingMode roundingMode) { in roundingMode() method in NumberFormatterSettings
246 return create(KEY_ROUNDING_MODE, roundingMode); in roundingMode()
605 if (macros.roundingMode == null) { in resolve()
606 macros.roundingMode = (RoundingMode) current.value; in resolve()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterSettings.java241 public T roundingMode(RoundingMode roundingMode) { in roundingMode() argument
242 return create(KEY_ROUNDING_MODE, roundingMode); in roundingMode()
592 if (macros.roundingMode == null) { in resolve()
593 macros.roundingMode = (RoundingMode) current.value; in resolve()
/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-7.0/llvm/lib/Support/
DAPFloat.cpp1212 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow()
1236 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1271 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize()
1630 roundingMode rounding_mode, in addOrSubtract()
1660 roundingMode rounding_mode) { in add()
1666 roundingMode rounding_mode) { in subtract()
1672 roundingMode rounding_mode) { in multiply()
1690 roundingMode rounding_mode) { in divide()
1767 roundingMode rounding_mode) { in fusedMultiplyAdd()
1808 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java604 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in RuleBasedNumberFormat
982 out.writeInt(this.roundingMode); in writeObject()
1002 roundingMode = in.readInt(); in readObject()
1540 return roundingMode; in getRoundingMode()
1555 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
1556 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { in setRoundingMode()
1557 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); in setRoundingMode()
1560 this.roundingMode = roundingMode; in setRoundingMode()
1954 …gDecimal(Double.toString(number)).setScale(getMaximumFractionDigits(), roundingMode).doubleValue(); in format()

1234