| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ |
| D | ComplexUnitsConverter.java | 138 …* Returns true if the specified `quantity` of the `inputUnit`, expressed in terms of the biggest u… 142 …* convert the `quantity` from `meter` to `foot`, then, it will compare the value in `foot` with th… 144 public boolean greaterThanOrEqual(BigDecimal quantity, BigDecimal limit) { in greaterThanOrEqual() argument 147 // NOTE: First converter converts to the biggest quantity. in greaterThanOrEqual() 148 …return unitsConverters_.get(0).convert(quantity).multiply(EPSILON_MULTIPLIER).compareTo(limit) >= … in greaterThanOrEqual() 169 public ComplexConverterResult convert(BigDecimal quantity, Precision rounder) { in convert() argument 171 if (quantity.compareTo(BigDecimal.ZERO) < 0 && unitsConverters_.size() > 1) { in convert() 172 quantity = quantity.abs(); in convert() 184 quantity = (unitsConverters_.get(i)).convert(quantity); in convert() 193 …BigInteger flooredQuantity = quantity.multiply(EPSILON_MULTIPLIER).setScale(0, RoundingMode.FLOOR)… in convert() [all …]
|
| /third_party/node/deps/icu-small/source/i18n/ |
| D | units_complexconverter.cpp | 132 UBool ComplexUnitsConverter::greaterThanOrEqual(double quantity, double limit) const { in greaterThanOrEqual() argument 135 // First converter converts to the biggest quantity. in greaterThanOrEqual() 136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual() 140 MaybeStackVector<Measure> ComplexUnitsConverter::convert(double quantity, in convert() argument 146 if (quantity < 0 && unitsConverters_.length() > 1) { in convert() 147 quantity *= -1; in convert() 163 quantity = (*unitsConverters_[i]).convert(quantity); in convert() 165 // If quantity is at the limits of double's precision from an in convert() 168 if (uprv_isNaN(quantity)) { in convert() 174 flooredQuantity = static_cast<int64_t>(floor(quantity * (1 + DBL_EPSILON))); in convert() [all …]
|
| D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
| D | number_usageprefs.cpp | 111 // Populates micros.mixedMeasures and modifies quantity, based on the values in 113 void mixedMeasuresToMicros(const MaybeStackVector<Measure> &measures, DecimalQuantity *quantity, in mixedMeasuresToMicros() argument 132 quantity->setToDouble(measures[i]->getNumber().getDouble()); in mixedMeasuresToMicros() 148 // There is no quantity. in mixedMeasuresToMicros() 162 void UsagePrefsHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 164 fParent->processQuantity(quantity, micros, status); in processQuantity() 169 quantity.roundToInfinity(); // Enables toDouble in processQuantity() 170 …const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), µs.rounder, status); in processQuantity() 180 mixedMeasuresToMicros(routedMeasures, &quantity, µs, status); in processQuantity() 199 void UnitConversionHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument [all …]
|
| D | number_multiplier.cpp | 131 void Scale::applyTo(impl::DecimalQuantity& quantity) const { in applyTo() 132 quantity.adjustMagnitude(fMagnitude); in applyTo() 135 quantity.multiplyBy(*fArbitrary, localStatus); in applyTo() 139 void Scale::applyReciprocalTo(impl::DecimalQuantity& quantity) const { in applyReciprocalTo() 140 quantity.adjustMagnitude(-fMagnitude); in applyReciprocalTo() 143 quantity.divideBy(*fArbitrary, localStatus); in applyReciprocalTo() 154 void MultiplierFormatHandler::processQuantity(DecimalQuantity& quantity, MicroProps& micros, in processQuantity() argument 156 fParent->processQuantity(quantity, micros, status); in processQuantity() 157 fMultiplier.applyTo(quantity); in processQuantity()
|
| /third_party/icu/icu4c/source/i18n/ |
| D | units_complexconverter.cpp | 132 UBool ComplexUnitsConverter::greaterThanOrEqual(double quantity, double limit) const { in greaterThanOrEqual() argument 135 // First converter converts to the biggest quantity. in greaterThanOrEqual() 136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual() 140 MaybeStackVector<Measure> ComplexUnitsConverter::convert(double quantity, in convert() argument 146 if (quantity < 0 && unitsConverters_.length() > 1) { in convert() 147 quantity *= -1; in convert() 163 quantity = (*unitsConverters_[i]).convert(quantity); in convert() 165 // If quantity is at the limits of double's precision from an in convert() 167 int64_t flooredQuantity = static_cast<int64_t>(floor(quantity * (1 + DBL_EPSILON))); in convert() 168 if (uprv_isNaN(quantity)) { in convert() [all …]
|
| D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
| D | number_usageprefs.cpp | 109 // Populates micros.mixedMeasures and modifies quantity, based on the values in 111 void mixedMeasuresToMicros(const MaybeStackVector<Measure> &measures, DecimalQuantity *quantity, in mixedMeasuresToMicros() argument 130 quantity->setToDouble(measures[i]->getNumber().getDouble()); in mixedMeasuresToMicros() 146 // There is no quantity. in mixedMeasuresToMicros() 160 void UsagePrefsHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 162 fParent->processQuantity(quantity, micros, status); in processQuantity() 167 quantity.roundToInfinity(); // Enables toDouble in processQuantity() 168 …const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), µs.rounder, status); in processQuantity() 178 mixedMeasuresToMicros(routedMeasures, &quantity, µs, status); in processQuantity() 197 void UnitConversionHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument [all …]
|
| D | number_multiplier.cpp | 131 void Scale::applyTo(impl::DecimalQuantity& quantity) const { in applyTo() 132 quantity.adjustMagnitude(fMagnitude); in applyTo() 135 quantity.multiplyBy(*fArbitrary, localStatus); in applyTo() 139 void Scale::applyReciprocalTo(impl::DecimalQuantity& quantity) const { in applyReciprocalTo() 140 quantity.adjustMagnitude(-fMagnitude); in applyReciprocalTo() 143 quantity.divideBy(*fArbitrary, localStatus); in applyReciprocalTo() 154 void MultiplierFormatHandler::processQuantity(DecimalQuantity& quantity, MicroProps& micros, in processQuantity() argument 156 fParent->processQuantity(quantity, micros, status); in processQuantity() 157 fMultiplier.applyTo(quantity); in processQuantity()
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
| D | MicroPropsGenerator.java | 7 …* for the quantity itself. The {@link #processQuantity} method performs the final step in the numb… 8 …* processing pipeline: it uses the quantity to generate a finalized {@link MicroProps}, which can … 13 * <em>quantity-dependent</em>. 18 * quantity-dependent part of the MicroProps. At the top of the linked list is a base instance of 19 …* {@link MicroProps} with properties that are not quantity-dependent. Each element in the linked l… 38 * public MicroProps processQuantity(DecimalQuantity quantity) { 39 * MicroProps micros = this.parent.processQuantity(quantity); 40 * // Perform manipulations on micros and/or quantity 54 * @param quantity 55 * The quantity for consideration and optional mutation. [all …]
|
| D | UsagePrefsHandler.java | 27 * Populates micros.mixedMeasures and modifies quantity, based on the values 31 …onverter.ComplexConverterResult complexConverterResult, DecimalQuantity quantity, MicroProps outMi… in mixedMeasuresToMicros() argument 34 …quantity.setToBigDecimal((BigDecimal) outMicros.mixedMeasures.get(outMicros.indexOfQuantity).getNu… in mixedMeasuresToMicros() 56 public MicroProps processQuantity(DecimalQuantity quantity) { in processQuantity() argument 57 MicroProps micros = this.fParent.processQuantity(quantity); in processQuantity() 59 quantity.roundToInfinity(); // Enables toDouble in processQuantity() 60 final UnitsRouter.RouteResult routed = fUnitsRouter.route(quantity.toBigDecimal(), micros); in processQuantity() 62 UsagePrefsHandler.mixedMeasuresToMicros(routed.complexConverterResult, quantity, micros); in processQuantity()
|
| D | MixedUnitLongNameHandler.java | 106 * Produces a plural-appropriate Modifier for a mixed unit: `quantity` is 115 public MicroProps processQuantity(DecimalQuantity quantity) { in processQuantity() argument 118 micros = parent.processQuantity(quantity); in processQuantity() 119 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantity() 124 * Produces a plural-appropriate Modifier for a mixed unit: `quantity` is 131 public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros) { in processQuantityWithMicros() argument 133 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantityWithMicros() 157 private Modifier getMixedUnitModifier(DecimalQuantity quantity, MicroProps micros) { in getMixedUnitModifier() argument 189 if (i > 0 && quantity.isNegative()) { in getMixedUnitModifier() 192 quantity.negate(); in getMixedUnitModifier() [all …]
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
| D | MicroPropsGenerator.java | 8 …* for the quantity itself. The {@link #processQuantity} method performs the final step in the numb… 9 …* processing pipeline: it uses the quantity to generate a finalized {@link MicroProps}, which can … 14 * <em>quantity-dependent</em>. 19 * quantity-dependent part of the MicroProps. At the top of the linked list is a base instance of 20 …* {@link MicroProps} with properties that are not quantity-dependent. Each element in the linked l… 35 * public MicroProps processQuantity(DecimalQuantity quantity) { 36 * MicroProps micros = this.parent.processQuantity(quantity); 37 * // Perform manipulations on micros and/or quantity 52 * @param quantity 53 * The quantity for consideration and optional mutation. [all …]
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
| D | units_complexconverter.cpp | 132 UBool ComplexUnitsConverter::greaterThanOrEqual(double quantity, double limit) const { in greaterThanOrEqual() argument 135 // First converter converts to the biggest quantity. in greaterThanOrEqual() 136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual() 140 MaybeStackVector<Measure> ComplexUnitsConverter::convert(double quantity, in convert() argument 146 if (quantity < 0) { in convert() 147 quantity *= -1; in convert() 163 quantity = (*unitsConverters_[i]).convert(quantity); in convert() 165 // If quantity is at the limits of double's precision from an in convert() 167 int64_t flooredQuantity = floor(quantity * (1 + DBL_EPSILON)); in convert() 168 if (uprv_isNaN(quantity)) { in convert() [all …]
|
| D | number_usageprefs.cpp | 109 // Populates micros.mixedMeasures and modifies quantity, based on the values in 111 void mixedMeasuresToMicros(const MaybeStackVector<Measure> &measures, DecimalQuantity *quantity, in mixedMeasuresToMicros() argument 130 quantity->setToDouble(measures[i]->getNumber().getDouble()); in mixedMeasuresToMicros() 146 // There is no quantity. in mixedMeasuresToMicros() 160 void UsagePrefsHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 162 fParent->processQuantity(quantity, micros, status); in processQuantity() 167 quantity.roundToInfinity(); // Enables toDouble in processQuantity() 168 …const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), µs.rounder, status); in processQuantity() 178 mixedMeasuresToMicros(routedMeasures, &quantity, µs, status); in processQuantity() 197 void UnitConversionHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument [all …]
|
| D | number_multiplier.cpp | 131 void Scale::applyTo(impl::DecimalQuantity& quantity) const { in applyTo() 132 quantity.adjustMagnitude(fMagnitude); in applyTo() 135 quantity.multiplyBy(*fArbitrary, localStatus); in applyTo() 139 void Scale::applyReciprocalTo(impl::DecimalQuantity& quantity) const { in applyReciprocalTo() 140 quantity.adjustMagnitude(-fMagnitude); in applyReciprocalTo() 143 quantity.divideBy(*fArbitrary, localStatus); in applyReciprocalTo() 154 void MultiplierFormatHandler::processQuantity(DecimalQuantity& quantity, MicroProps& micros, in processQuantity() argument 156 fParent->processQuantity(quantity, micros, status); in processQuantity() 157 fMultiplier.applyTo(quantity); in processQuantity()
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
| D | ParsedNumber.java | 22 public DecimalQuantity_DualStorageBCD quantity; field in ParsedNumber 78 quantity = null; in clear() 87 quantity = other.quantity == null ? null in copyFrom() 88 : (DecimalQuantity_DualStorageBCD) other.quantity.createCopy(); in copyFrom() 118 if (quantity != null && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 119 quantity.negate(); in postProcess() 132 return quantity != null || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 157 assert quantity != null; in getNumber() 158 if (quantity.isZeroish() && quantity.isNegative() && !integerOnly) { in getNumber() 162 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber() [all …]
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
| D | ParsedNumber.java | 20 public DecimalQuantity_DualStorageBCD quantity; field in ParsedNumber 76 quantity = null; in clear() 85 quantity = other.quantity == null ? null in copyFrom() 86 : (DecimalQuantity_DualStorageBCD) other.quantity.createCopy(); in copyFrom() 116 if (quantity != null && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 117 quantity.negate(); in postProcess() 130 return quantity != null || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 155 assert quantity != null; in getNumber() 156 if (quantity.isZeroish() && quantity.isNegative() && !integerOnly) { in getNumber() 160 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber() [all …]
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
| D | CompactNotation.java | 124 public MicroProps processQuantity(DecimalQuantity quantity) { in processQuantity() argument 125 MicroProps micros = parent.processQuantity(quantity); in processQuantity() 131 if (quantity.isZeroish()) { in processQuantity() 133 micros.rounder.apply(quantity); in processQuantity() 135 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 136 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity() 140 String patternString = data.getPattern(magnitude, rules, quantity); in processQuantity() 148 mod.applyToMicros(micros, quantity); in processQuantity() 154 unsafePatternModifier.setNumberProperties(quantity.signum(), null); in processQuantity() 161 quantity.adjustExponent(-1 * multiplier); in processQuantity()
|
| D | Scale.java | 13 * A class that defines a quantity by which a number should be multiplied when formatting. 178 public void applyTo(DecimalQuantity quantity) { in applyTo() argument 179 quantity.adjustMagnitude(magnitude); in applyTo() 181 quantity.multiplyBy(arbitrary); in applyTo() 190 public void applyReciprocalTo(DecimalQuantity quantity) { in applyReciprocalTo() argument 191 quantity.adjustMagnitude(-magnitude); in applyReciprocalTo() 193 quantity.multiplyBy(reciprocal); in applyReciprocalTo() 194 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
| D | CompactNotation.java | 126 public MicroProps processQuantity(DecimalQuantity quantity) { in processQuantity() argument 127 MicroProps micros = parent.processQuantity(quantity); in processQuantity() 133 if (quantity.isZeroish()) { in processQuantity() 135 micros.rounder.apply(quantity); in processQuantity() 137 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 138 magnitude = quantity.isZeroish() ? 0 : quantity.getMagnitude(); in processQuantity() 142 StandardPlural plural = quantity.getStandardPlural(rules); in processQuantity() 151 mod.applyToMicros(micros, quantity); in processQuantity() 157 unsafePatternModifier.setNumberProperties(quantity.signum(), null); in processQuantity() 164 quantity.adjustExponent(-1 * multiplier); in processQuantity()
|
| D | Scale.java | 14 * A class that defines a quantity by which a number should be multiplied when formatting. 174 public void applyTo(DecimalQuantity quantity) { in applyTo() argument 175 quantity.adjustMagnitude(magnitude); in applyTo() 177 quantity.multiplyBy(arbitrary); in applyTo() 186 public void applyReciprocalTo(DecimalQuantity quantity) { in applyReciprocalTo() argument 187 quantity.adjustMagnitude(-magnitude); in applyReciprocalTo() 189 quantity.multiplyBy(reciprocal); in applyReciprocalTo() 190 quantity.roundToMagnitude(quantity.getMagnitude() - mc.getPrecision(), mc); in applyReciprocalTo()
|
| /third_party/openmax/api/1.1.2/ |
| D | OMX_Types.h | 134 /** OMX_U8 is an 8 bit unsigned quantity that is byte aligned */ 137 /** OMX_S8 is an 8 bit signed quantity that is byte aligned */ 140 /** OMX_U16 is a 16 bit unsigned quantity that is 16 bit word aligned */ 143 /** OMX_S16 is a 16 bit signed quantity that is 16 bit word aligned */ 146 /** OMX_U32 is a 32 bit unsigned quantity that is 32 bit word aligned */ 149 /** OMX_S32 is a 32 bit signed quantity that is 32 bit word aligned */ 161 /** OMX_U64 is a 64 bit unsigned quantity that is 64 bit word aligned */ 164 /** OMX_S64 is a 64 bit signed quantity that is 64 bit word aligned */ 169 /** OMX_U64 is a 64 bit unsigned quantity that is 64 bit word aligned */ 172 /** OMX_S64 is a 64 bit signed quantity that is 64 bit word aligned */ [all …]
|
| /third_party/icu/icu4c/source/test/intltest/ |
| D | numbertest_decimalquantity.cpp | 367 DecimalQuantity quantity; in testFitsInLong() local 368 quantity.setToInt(0); in testFitsInLong() 369 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong() 370 quantity.setToInt(42); in testFitsInLong() 371 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong() 372 quantity.setToDouble(0.1); in testFitsInLong() 373 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 374 quantity.setToDouble(42.1); in testFitsInLong() 375 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong() 376 quantity.setToLong(1000000); in testFitsInLong() [all …]
|