/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
H A D | APFloat.h | 150 enum roundingMode { enum in class:llvm::APFloat 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, boo [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 160 enum roundingMode { enum in class:llvm::APFloat 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, boo [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
H A D | ShortDuration.java | 110 public abstract long to(TimeUnit unit, RoundingMode roundingMode); argument 137 * multiplicand}, rounded according to {@code roundingMode} if necessary. 142 public abstract ShortDuration times(BigDecimal multiplicand, RoundingMode roundingMode); argument 146 * value {@code divisor}, rounded according to {@code roundingMode} if necessary. 151 public abstract ShortDuration dividedBy(long divisor, RoundingMode roundingMode); argument 155 * divisor}, rounded according to {@code roundingMode} if necessary. 160 public abstract ShortDuration dividedBy(BigDecimal divisor, RoundingMode roundingMode); 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) { 214 to(TimeUnit unit, RoundingMode roundingMode) argument 237 times(BigDecimal multiplicand, RoundingMode roundingMode) argument 242 dividedBy(long divisor, RoundingMode roundingMode) argument 246 dividedBy(BigDecimal divisor, RoundingMode roundingMode) argument 344 toLong(BigDecimal bd, RoundingMode roundingMode) argument [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
H A D | BigReal.java | 53 private RoundingMode roundingMode = RoundingMode.HALF_UP; field in class:BigReal 198 return roundingMode; 203 * @param roundingMode rounding mode for decimal divisions 206 public void setRoundingMode(RoundingMode roundingMode) { argument 207 this.roundingMode = roundingMode; 241 return new BigReal(d.divide(a.d, scale, roundingMode));
|
/external/icu/android_icu4j/src/main/java/android/icu/math/ |
H A D | MathContext.java | 52 * <li><code>roundingMode</code>: 287 int roundingMode; field in class:MathContext 320 * roundingMode=ROUND_HALF_UP</code>. 378 * The roundingMode setting is set to its default value 402 * precision, form, lostDigits, and roundingMode setting. 416 * @param setroundingmode The <code>int</code> roundingMode setting 442 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode); 446 roundingMode=setroundingmode; 489 * Returns the roundingMode setting. 500 * @return an <code>int</code> which is the value of the roundingMode [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/ |
H A D | MathContext.java | 51 * <li><code>roundingMode</code>: 298 int roundingMode; field in class:MathContext 331 * roundingMode=ROUND_HALF_UP</code>. 392 * The roundingMode setting is set to its default value 417 * precision, form, lostDigits, and roundingMode setting. 431 * @param setroundingmode The <code>int</code> roundingMode setting 458 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode); 462 roundingMode=setroundingmode; 508 * Returns the roundingMode setting. 519 * @return an <code>int</code> which is the value of the roundingMode [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/ |
H A D | MathContext.java | 51 * <li><code>roundingMode</code>: 298 int roundingMode; field in class:MathContext 331 * roundingMode=ROUND_HALF_UP</code>. 392 * The roundingMode setting is set to its default value 417 * precision, form, lostDigits, and roundingMode setting. 431 * @param setroundingmode The <code>int</code> roundingMode setting 458 throw new java.lang.IllegalArgumentException("Bad roundingMode value:"+" "+setroundingmode); 462 roundingMode=setroundingmode; 508 * Returns the roundingMode setting. 519 * @return an <code>int</code> which is the value of the roundingMode [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
H A D | NumberFormatICU.java | 208 public void setRoundingMode(RoundingMode roundingMode) { argument 209 if (roundingMode.equals(RoundingMode.CEILING)) { 211 } else if (roundingMode.equals(RoundingMode.DOWN)) { 213 } else if (roundingMode.equals(RoundingMode.FLOOR)) { 215 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { 217 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { 219 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { 221 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { 223 } else if (roundingMode.equals(RoundingMode.UP)) {
|
H A D | DecimalFormatICU.java | 366 public void setRoundingMode(RoundingMode roundingMode) { argument 367 if (roundingMode.equals(RoundingMode.CEILING)) { 369 } else if (roundingMode.equals(RoundingMode.DOWN)) { 371 } else if (roundingMode.equals(RoundingMode.FLOOR)) { 373 } else if (roundingMode.equals(RoundingMode.HALF_DOWN)) { 375 } else if (roundingMode.equals(RoundingMode.HALF_EVEN)) { 377 } else if (roundingMode.equals(RoundingMode.HALF_UP)) { 379 } else if (roundingMode.equals(RoundingMode.UNNECESSARY)) { 381 } else if (roundingMode.equals(RoundingMode.UP)) {
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/ |
H A D | NumberFormatJDK.java | 252 public void setRoundingMode(int roundingMode) { argument 254 switch (roundingMode) { 281 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | RuleBasedNumberFormat.java | 601 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in class:RuleBasedNumberFormat 971 out.writeInt(this.roundingMode); 991 roundingMode = in.readInt(); 1506 return roundingMode; 1513 * @param roundingMode A rounding mode, between <code>BigDecimal.ROUND_UP</code> and 1515 * @exception IllegalArgumentException if <code>roundingMode</code> is unrecognized. 1520 public void setRoundingMode(int roundingMode) { argument 1521 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { 1522 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); [all...] |
H A D | DecimalFormat.java | 811 // * round(number / roundingDouble, roundingMode, isNegative); 813 number, roundingDouble, roundingDoubleReciprocal, roundingMode, 906 // ROUND_HALF_EVEN behavior of DigitList. For example, if number = 0.003016 and roundingMode = 908 if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) { 919 number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); 1125 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1158 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1183 number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement); 1190 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1213 number = number.divide(actualRoundingIncrementICU, 0, roundingMode) 3505 setRoundingMode(int roundingMode) argument 5748 private int roundingMode = BigDecimal.ROUND_HALF_EVEN; field in class:DecimalFormat [all...] |
H A D | NumberFormat.java | 1212 * @param roundingMode A rounding mode, between 1217 public void setRoundingMode(int roundingMode) { argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | RuleBasedNumberFormat.java | 604 private int roundingMode = BigDecimal.ROUND_UNNECESSARY; field in class:RuleBasedNumberFormat 985 out.writeInt(this.roundingMode); 1005 roundingMode = in.readInt(); 1543 return roundingMode; 1550 * @param roundingMode A rounding mode, between <code>BigDecimal.ROUND_UP</code> and 1552 * @exception IllegalArgumentException if <code>roundingMode</code> is unrecognized. 1558 public void setRoundingMode(int roundingMode) { argument 1559 if (roundingMode < BigDecimal.ROUND_UP || roundingMode > BigDecimal.ROUND_UNNECESSARY) { 1560 throw new IllegalArgumentException("Invalid rounding mode: " + roundingMode); [all...] |
H A D | DecimalFormat.java | 816 // * round(number / roundingDouble, roundingMode, isNegative); 818 number, roundingDouble, roundingDoubleReciprocal, roundingMode, 911 // ROUND_HALF_EVEN behavior of DigitList. For example, if number = 0.003016 and roundingMode = 913 if (useExponentialNotation && precision > 0 && number != 0.0 && roundingMode != BigDecimal.ROUND_HALF_EVEN) { 924 number = DecimalFormat.round(number, roundingInc, roundingIncReciprocal, roundingMode, isNegative); 1131 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1166 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1193 number = number.divide(actualRoundingIncrement, 0, roundingMode).multiply(actualRoundingIncrement); 1200 if (digitList.wasRounded() && roundingMode == BigDecimal.ROUND_UNNECESSARY) { 1225 number = number.divide(actualRoundingIncrementICU, 0, roundingMode) 3537 setRoundingMode(int roundingMode) argument 5844 private int roundingMode = BigDecimal.ROUND_HALF_EVEN; field in class:DecimalFormat [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
H A D | APFloat.cpp | 1116 APFloat::handleOverflow(roundingMode rounding_mode) 1142 APFloat::roundAwayFromZero(roundingMode rounding_mode, 1181 APFloat::normalize(roundingMode rounding_mode, 1558 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, 1591 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) 1598 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) 1605 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) 1625 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) 1683 APFloat::mod(const APFloat &rhs, roundingMode rounding_mode) 1726 roundingMode rounding_mod [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/ |
H A D | BigMatrixImpl.java | 85 private int roundingMode = BigDecimal.ROUND_HALF_UP; field in class:BigMatrixImpl 538 return roundingMode; 544 * @param roundingMode rounding mode for decimal divisions 546 public void setRoundingMode(int roundingMode) { argument 547 this.roundingMode = roundingMode; 1185 bpCol[j] = bpCol[j].divide(luDiag, scale, roundingMode); 1291 luRow[col] = luRow[col].divide(luDiag, scale, roundingMode);
|
/external/llvm/lib/Support/ |
H A D | APFloat.cpp | 1221 APFloat::handleOverflow(roundingMode rounding_mode) 1247 APFloat::roundAwayFromZero(roundingMode rounding_mode, 1284 APFloat::normalize(roundingMode rounding_mode, 1666 APFloat::addOrSubtract(const APFloat &rhs, roundingMode rounding_mode, 1697 APFloat::add(const APFloat &rhs, roundingMode rounding_mode) 1704 APFloat::subtract(const APFloat &rhs, roundingMode rounding_mode) 1711 APFloat::multiply(const APFloat &rhs, roundingMode rounding_mode) 1730 APFloat::divide(const APFloat &rhs, roundingMode rounding_mode) 1828 roundingMode rounding_mode) 1870 APFloat::opStatus APFloat::roundToIntegral(roundingMode rounding_mod [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
H A D | BigFraction.java | 550 * @param roundingMode 554 * if <tt>roundingMode</tt> does not represent a valid rounding 558 public BigDecimal bigDecimalValue(final int roundingMode) { argument 559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode); 572 * @param roundingMode 577 public BigDecimal bigDecimalValue(final int scale, final int roundingMode) { argument 578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode);
|
/external/icu/icu4c/source/test/intltest/ |
H A D | numberformattesttuple.h | 110 DecimalFormat::ERoundingMode roundingMode; member in class:NumberFormatTestTuple
|
H A D | numberformattesttuple.cpp | 318 FIELD_INIT(roundingMode, &gERoundingOps),
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
H A D | NumberFormatTestData.java | 102 public Integer roundingMode = null; field in class:NumberFormatTestData 206 "roundingMode", 342 roundingMode = fromString(roundingModeMap, value);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | NumberFormatTestData.java | 101 public Integer roundingMode = null; field in class:NumberFormatTestData 205 "roundingMode", 341 roundingMode = fromString(roundingModeMap, value);
|
/external/icu/icu4c/source/i18n/unicode/ |
H A D | decimfmt.h | 1408 * @param roundingMode A rounding mode 1414 virtual void setRoundingMode(ERoundingMode roundingMode);
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | cnmdptst.c | 1070 static void roundingTest2(UNumberFormat* nf, double x, int32_t roundingMode, const char* expected) argument 1078 unum_setAttribute(nf, UNUM_ROUNDING_MODE, roundingMode);
|