Home
last modified time | relevance | path

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

123

/external/llvm/include/llvm/ADT/
DAPFloat.h158 enum roundingMode { enum
295 opStatus add(const APFloat &, roundingMode);
296 opStatus subtract(const APFloat &, roundingMode);
297 opStatus multiply(const APFloat &, roundingMode);
298 opStatus divide(const APFloat &, roundingMode);
303 opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
304 opStatus roundToIntegral(roundingMode);
361 opStatus convert(const fltSemantics &, roundingMode, bool *);
362 opStatus convertToInteger(integerPart *, unsigned int, bool, roundingMode,
364 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/opencv3/3rdparty/openexr/IlmImf/
DImfTiledMisc.cpp81 V2i (levelSize (minX, maxX, lx, tileDesc.roundingMode) - 1, in dataWindowForLevel()
82 levelSize (minY, maxY, ly, tileDesc.roundingMode) - 1); in dataWindowForLevel()
198 num = roundLog2 (std::max (w, h), tileDesc.roundingMode) + 1; in calculateNumXLevels()
206 num = roundLog2 (w, tileDesc.roundingMode) + 1; in calculateNumXLevels()
238 num = roundLog2 (std::max (w, h), tileDesc.roundingMode) + 1; in calculateNumYLevels()
246 num = roundLog2 (h, tileDesc.roundingMode) + 1; in calculateNumYLevels()
292 tileDesc.roundingMode); in precalculateTileInfo()
298 tileDesc.roundingMode); in precalculateTileInfo()
DImfTileDescription.h74 LevelRoundingMode roundingMode; variable
84 roundingMode (r) in xSize()
95 roundingMode == other.roundingMode;
DImfTileDescriptionAttribute.cpp63 unsigned char tmp = _value.mode | (_value.roundingMode << 4); in writeValueTo()
80 _value.roundingMode = LevelRoundingMode ((tmp >> 4) & 0x0f); in readValueFrom()
DImfTiledInputFile.cpp1127 return _data->tileDesc.roundingMode; in levelRoundingMode()
1180 _data->tileDesc.roundingMode); in levelWidth()
1197 _data->tileDesc.roundingMode); in levelHeight()
DImfHeader.cpp733 if (tileDesc.roundingMode != ROUND_UP && in sanityCheck()
734 tileDesc.roundingMode != ROUND_DOWN) in sanityCheck()
DImfTiledOutputFile.cpp1449 return _data->tileDesc.roundingMode; in levelRoundingMode()
1500 _data->tileDesc.roundingMode); in levelWidth()
1519 _data->tileDesc.roundingMode); in levelHeight()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java206 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
207 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode()
209 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode()
211 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode()
213 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
215 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode()
217 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode()
219 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode()
221 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
DDecimalFormatICU.java364 public void setRoundingMode(RoundingMode roundingMode) { in setRoundingMode() argument
365 if (roundingMode.equals(RoundingMode.CEILING)) { in setRoundingMode()
367 } else if (roundingMode.equals(RoundingMode.DOWN)) { in setRoundingMode()
369 } else if (roundingMode.equals(RoundingMode.FLOOR)) { in setRoundingMode()
371 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { in setRoundingMode()
373 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { in setRoundingMode()
375 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { in setRoundingMode()
377 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { in setRoundingMode()
379 } else if (roundingMode.equals(RoundingMode.UP)) { in setRoundingMode()
/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.java285 int roundingMode; field in MathContext
444 roundingMode=setroundingmode; in MathContext()
503 return roundingMode; in getRoundingMode()
557 if (roundingMode==ROUNDS[r]) in toString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DMathContext.java296 int roundingMode; field in MathContext
460 roundingMode=setroundingmode; in MathContext()
523 return roundingMode; in getRoundingMode()
578 if (roundingMode==ROUNDS[r]) in toString()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DMathContext.java296 int roundingMode; field in MathContext
460 roundingMode=setroundingmode; in MathContext()
523 return roundingMode; in getRoundingMode()
578 if (roundingMode==ROUNDS[r]) in toString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java601 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in RuleBasedNumberFormat
978 out.writeInt(this.roundingMode); in writeObject()
998 roundingMode = in.readInt(); in readObject()
1519 return roundingMode; in getRoundingMode()
1534 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
1535 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { in setRoundingMode()
1536 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); in setRoundingMode()
1539 this.roundingMode = roundingMode; in setRoundingMode()
1933 …gDecimal(Double.toString(number)).setScale(getMaximumFractionDigits(), roundingMode).doubleValue(); in format()
DDecimalFormat.java816 number, roundingDouble, roundingDoubleReciprocal, roundingMode, in round()
908 …if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_H… in format()
919 …number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); in format()
1126 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1161 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1188 …number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement); in format()
1195 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1220 number = number.divide(actualRoundingIncrementICU, 0, roundingMode) in format()
1228 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
3491 return roundingMode;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java598 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in RuleBasedNumberFormat
964 out.writeInt(this.roundingMode); in writeObject()
984 roundingMode = in.readInt(); in readObject()
1483 return roundingMode; in getRoundingMode()
1498 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
1499 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { in setRoundingMode()
1500 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); in setRoundingMode()
1503 this.roundingMode = roundingMode; in setRoundingMode()
1897 …gDecimal(Double.toString(number)).setScale(getMaximumFractionDigits(), roundingMode).doubleValue(); in format()
DDecimalFormat.java811 number, roundingDouble, roundingDoubleReciprocal, roundingMode, in round()
903 …if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_H… in format()
914 …number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); in format()
1120 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1153 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1178 …number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement); in format()
1185 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
1208 number = number.divide(actualRoundingIncrementICU, 0, roundingMode) in format()
1216 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { in format()
3460 return roundingMode;
[all …]
/external/llvm/lib/Support/
DAPFloat.cpp1218 APFloat::handleOverflow(roundingMode rounding_mode) in handleOverflow()
1244 APFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1281 APFloat::normalize(roundingMode rounding_mode, in normalize()
1663 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, in addOrSubtract()
1694 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) in add()
1701 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) in subtract()
1708 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) in multiply()
1727 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) in divide()
1825 roundingMode rounding_mode) in fusedMultiplyAdd()
1867 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java250 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
252 switch (roundingMode) { in setRoundingMode()
279 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); in setRoundingMode()
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DBigFraction.java558 public BigDecimal bigDecimalValue(final int roundingMode) { in bigDecimalValue() argument
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode); in bigDecimalValue()
577 public BigDecimal bigDecimalValue(final int scale, final int roundingMode) { in bigDecimalValue() argument
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode); in bigDecimalValue()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DBigMatrixImpl.java85 private int roundingMode = BigDecimal.ROUND_HALF_UP; field in BigMatrixImpl
538 return roundingMode; in getRoundingMode()
546 public void setRoundingMode(int roundingMode) { in setRoundingMode() argument
547 this.roundingMode = roundingMode; in setRoundingMode()
1185 bpCol[j] = bpCol[j].divide(luDiag, scale, roundingMode); in solve()
1291 luRow[col] = luRow[col].divide(luDiag, scale, roundingMode); in luDecompose()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTestTuple.java99 public Integer roundingMode = null; field in NumberFormatTestTuple
339 roundingMode = fromString(roundingModeMap, value); in setRoundingMode()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTestTuple.java100 public Integer roundingMode = null; field in NumberFormatTestTuple
340 roundingMode = fromString(roundingModeMap, value); in setRoundingMode()
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h108 DecimalFormat::ERoundingMode roundingMode; variable

123