/external/icu/icu4c/source/i18n/ |
D | number_rounding.cpp | 78 Precision Precision::unlimited() { in unlimited() 79 return Precision(RND_NONE, {}, kDefaultMode); in unlimited() 82 FractionPrecision Precision::integer() { in integer() 86 FractionPrecision Precision::fixedFraction(int32_t minMaxFractionPlaces) { in fixedFraction() 94 FractionPrecision Precision::minFraction(int32_t minFractionPlaces) { in minFraction() 102 FractionPrecision Precision::maxFraction(int32_t maxFractionPlaces) { in maxFraction() 110 FractionPrecision Precision::minMaxFraction(int32_t minFractionPlaces, int32_t maxFractionPlaces) { in minMaxFraction() 119 Precision Precision::fixedSignificantDigits(int32_t minMaxSignificantDigits) { in fixedSignificantDigits() 127 Precision Precision::minSignificantDigits(int32_t minSignificantDigits) { in minSignificantDigits() 135 Precision Precision::maxSignificantDigits(int32_t maxSignificantDigits) { in maxSignificantDigits() [all …]
|
D | number_mapper.cpp | 140 Precision precision; in oldToNew() 142 precision = Precision::constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 144 precision = Precision::constructIncrement(roundingIncrement, minFrac); in oldToNew() 149 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 151 precision = Precision::constructFraction(minFrac, maxFrac); in oldToNew() 153 precision = Precision::constructCurrency(currencyUsage); in oldToNew() 226 if (macros.precision.fType == Precision::PrecisionType::RND_FRACTION) { 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() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | Precision.java | 26 public abstract class Precision implements Cloneable { class 30 /* package-private */ Precision() { in Precision() method in Precision 52 public static Precision unlimited() { in unlimited() 195 public static Precision fixedSignificantDigits(int minMaxSignificantDigits) { in fixedSignificantDigits() 219 public static Precision minSignificantDigits(int minSignificantDigits) { in minSignificantDigits() 238 public static Precision maxSignificantDigits(int maxSignificantDigits) { in maxSignificantDigits() 260 …public static Precision minMaxSignificantDigits(int minSignificantDigits, int maxSignificantDigits… in minMaxSignificantDigits() 277 public static Precision fixedDigits(int a) { in fixedDigits() 286 public static Precision minDigits(int a) { in minDigits() 295 public static Precision maxDigits(int a) { in maxDigits() [all …]
|
D | NumberPropertyMapper.java | 21 import android.icu.number.Precision.FractionRounderImpl; 22 import android.icu.number.Precision.IncrementRounderImpl; 23 import android.icu.number.Precision.SignificantRounderImpl; 179 Precision rounding = null; in oldToNew() 181 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 183 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew() 191 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 193 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 195 rounding = Precision.constructCurrency(currencyUsage); in oldToNew() 274 macros.precision = Precision.constructInfinite().withMode(mathContext); in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 224 private static Precision precision(StemEnum stem) { in precision() 227 return Precision.integer(); in precision() 229 return Precision.unlimited(); in precision() 231 return Precision.currency(CurrencyUsage.STANDARD); in precision() 233 return Precision.currency(CurrencyUsage.CASH); in precision() 1016 macros.precision = Precision.minFraction(minFrac); in parseFractionStem() 1018 macros.precision = Precision.minMaxFraction(minFrac, maxFrac); in parseFractionStem() 1070 macros.precision = Precision.minSignificantDigits(minSig); in parseDigitsStem() 1072 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1149 macros.precision = Precision.increment(increment); in parseIncrementOption() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Precision.java | 25 public abstract class Precision implements Cloneable { class 29 /* package-private */ Precision() { in Precision() method in Precision 52 public static Precision unlimited() { in unlimited() 201 public static Precision fixedSignificantDigits(int minMaxSignificantDigits) { in fixedSignificantDigits() 226 public static Precision minSignificantDigits(int minSignificantDigits) { in minSignificantDigits() 246 public static Precision maxSignificantDigits(int maxSignificantDigits) { in maxSignificantDigits() 269 …public static Precision minMaxSignificantDigits(int minSignificantDigits, int maxSignificantDigits… in minMaxSignificantDigits() 286 public static Precision fixedDigits(int a) { in fixedDigits() 295 public static Precision minDigits(int a) { in minDigits() 304 public static Precision maxDigits(int a) { in maxDigits() [all …]
|
D | NumberPropertyMapper.java | 20 import com.ibm.icu.number.Precision.FractionRounderImpl; 21 import com.ibm.icu.number.Precision.IncrementRounderImpl; 22 import com.ibm.icu.number.Precision.SignificantRounderImpl; 178 Precision rounding = null; in oldToNew() 180 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 182 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew() 190 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 192 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 194 rounding = Precision.constructCurrency(currencyUsage); in oldToNew() 273 macros.precision = Precision.constructInfinite().withMode(mathContext); in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 223 private static Precision precision(StemEnum stem) { in precision() 226 return Precision.integer(); in precision() 228 return Precision.unlimited(); in precision() 230 return Precision.currency(CurrencyUsage.STANDARD); in precision() 232 return Precision.currency(CurrencyUsage.CASH); in precision() 1015 macros.precision = Precision.minFraction(minFrac); in parseFractionStem() 1017 macros.precision = Precision.minMaxFraction(minFrac, maxFrac); in parseFractionStem() 1069 macros.precision = Precision.minSignificantDigits(minSig); in parseDigitsStem() 1071 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1148 macros.precision = Precision.increment(increment); in parseIncrementOption() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | p9-instrs.txt | 202 // VSX Scalar Quad-Precision Move Instructions 204 // VSX Scalar Copy Sign Quad-Precision X-form p.553 207 // VSX Scalar Absolute Quad-Precision X-form 531 208 // VSX Scalar Negate Quad-Precision X-form 627 209 // VSX Scalar Negative Absolute Quad-Precision X-form 626 215 // VSX Scalar Quad-Precision Elementary Arithmetic 217 // VSX Scalar Add Quad-Precision [using round to Odd] X-form 539 218 // VSX Scalar Divide Quad-Precision [using round to Odd] X-form 584 219 // VSX Scalar Multiply Quad-Precision [using round to Odd] X-form 622 222 // VSX Scalar Square Root Quad-Precision [using round to Odd] X-form 662 [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 103 class Precision; variable 440 typedef Precision SignificantDigitsPrecision; 450 typedef Precision Rounder; 478 class U_I18N_API Precision : public UMemory { 497 static Precision unlimited(); 708 Precision withMode(UNumberFormatRoundingMode roundingMode) const; 755 Precision(const PrecisionType& type, const PrecisionUnion& union_, in Precision() function 759 Precision(UErrorCode errorCode) : fType(RND_ERROR) { in Precision() function 763 Precision() : fType(RND_BOGUS) {} in Precision() function 778 Precision withCurrency(const CurrencyUnit ¤cy, UErrorCode &status) const; [all …]
|
/external/eigen/unsupported/Eigen/ |
D | MPRealSupport | 78 …static inline Real highest (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::ma… 79 …static inline Real lowest (long Precision = mpfr::mpreal::get_default_prec()) { return -mpfr::ma… 82 …static inline Real Pi (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con… 83 …static inline Real Euler (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con… 84 …static inline Real Log2 (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con… 85 …static inline Real Catalan (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con… 87 …static inline Real epsilon (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::mac… 91 …inline int digits10 (long Precision = mpfr::mpreal::get_default_prec()) { return std::numeric_lim…
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 46 import android.icu.number.Precision; 535 .precision(Precision.fixedFraction(20)) in unitMeasure() 803 NumberFormatter.with().precision(Precision.integer()), in roundingFraction() 818 NumberFormatter.with().precision(Precision.fixedFraction(3)), in roundingFraction() 833 NumberFormatter.with().precision(Precision.minFraction(1)), in roundingFraction() 848 NumberFormatter.with().precision(Precision.maxFraction(1)), in roundingFraction() 863 NumberFormatter.with().precision(Precision.minMaxFraction(1, 3)), in roundingFraction() 881 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() 889 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() 897 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() [all …]
|
D | NumberRangeFormatterTest.java | 20 import android.icu.number.Precision; 221 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 238 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 255 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 272 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 291 .precision(Precision.integer())), in testCollapse() 311 .precision(Precision.integer())), in testCollapse() 331 .precision(Precision.integer())), in testCollapse() 351 .precision(Precision.integer())), in testCollapse() 641 .numberFormatterFirst(NumberFormatter.with().precision(Precision.integer())) in testDifferentFormatters() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 45 import com.ibm.icu.number.Precision; 532 .precision(Precision.fixedFraction(20)) in unitMeasure() 800 NumberFormatter.with().precision(Precision.integer()), in roundingFraction() 815 NumberFormatter.with().precision(Precision.fixedFraction(3)), in roundingFraction() 830 NumberFormatter.with().precision(Precision.minFraction(1)), in roundingFraction() 845 NumberFormatter.with().precision(Precision.maxFraction(1)), in roundingFraction() 860 NumberFormatter.with().precision(Precision.minMaxFraction(1, 3)), in roundingFraction() 878 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() 886 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() 894 NumberFormatter.with().precision(Precision.fixedSignificantDigits(3)), in roundingFigures() [all …]
|
D | NumberRangeFormatterTest.java | 19 import com.ibm.icu.number.Precision; 218 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 235 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 252 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 269 … .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse() 288 .precision(Precision.integer())), in testCollapse() 308 .precision(Precision.integer())), in testCollapse() 328 .precision(Precision.integer())), in testCollapse() 348 .precision(Precision.integer())), in testCollapse() 638 .numberFormatterFirst(NumberFormatter.with().precision(Precision.integer())) in testDifferentFormatters() [all …]
|
/external/llvm/lib/Support/ |
D | ScaledNumber.cpp | 163 static std::string toStringAPFloat(uint64_t D, int E, unsigned Precision) { in toStringAPFloat() argument 188 Float.toString(Chars, Precision, 0); in toStringAPFloat() 203 unsigned Precision) { in toString() argument 236 return toStringAPFloat(D, E, Precision); in toString() 279 (!Precision || DigitsOut <= Precision || SinceDot < 2)); in toString() 282 if (!Precision || DigitsOut <= Precision) in toString() 287 std::max(Str.size() - (DigitsOut - Precision), AfterDot + 1); in toString() 317 int Width, unsigned Precision) { in print() argument 318 return OS << toString(D, E, Width, Precision); in print()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | ScaledNumber.cpp | 163 static std::string toStringAPFloat(uint64_t D, int E, unsigned Precision) { in toStringAPFloat() argument 188 Float.toString(Chars, Precision, 0); in toStringAPFloat() 203 unsigned Precision) { in toString() argument 236 return toStringAPFloat(D, E, Precision); in toString() 279 (!Precision || DigitsOut <= Precision || SinceDot < 2)); in toString() 282 if (!Precision || DigitsOut <= Precision) in toString() 287 std::max(Str.size() - (DigitsOut - Precision), AfterDot + 1); in toString() 317 int Width, unsigned Precision) { in print() argument 318 return OS << toString(D, E, Width, Precision); in print()
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderUniformIntegerFunctionTests.cpp | 45 …ase (Context& context, const char* description, int inputValue, glu::Precision precision, glu::… 66 static std::string getCaseName (glu::Precision precision, glu::ShaderType shaderType); 68 …ionCase(Context& context, const char* description, int inputValue, glu::Precision precision, glu::… in UniformIntegerFunctionCase() 146 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 174 static std::string getCaseName (glu::Precision precision, glu::ShaderType shaderType) in getCaseName() 191 …FindMSBEdgeCase(Context& context, int inputValue, glu::Precision precision, glu::ShaderType shader… in FindMSBEdgeCase() 218 …FindLSBEdgeCase(Context& context, int inputValue, glu::Precision precision, glu::ShaderType shader… in FindLSBEdgeCase() 243 …group->addChild(new TestClass(parent->getContext(), input, glu::Precision(prec), glu::ShaderType(s… in addFunctionCases()
|
D | es31fShaderCommonFunctionTests.cpp | 127 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero() 153 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits() 166 static int getMaxNormalizedValueExponent (glu::Precision precision) in getMaxNormalizedValueExponent() 179 static int getMinNormalizedValueExponent (glu::Precision precision) in getMinNormalizedValueExponent() 192 static float makeFloatRepresentable (float f, glu::Precision precision) in makeFloatRepresentable() 464 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 492 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName() 500 …AbsCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in AbsCase() 525 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 537 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() [all …]
|
D | es31fShaderIntegerFunctionTests.cpp | 111 inline int getShaderUintBitCount (glu::ShaderType shaderType, glu::Precision precision) in getShaderUintBitCount() 137 …::Random& rnd, glu::ShaderType shaderType, glu::DataType dataType, glu::Precision precision, deUin… in generateRandomInputData() 322 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 350 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::S… in getIntegerFuncCaseName() 358 …UaddCarryCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType… in UaddCarryCase() 372 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 426 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 454 …UsubBorrowCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderTyp… in UsubBorrowCase() 468 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 520 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 123 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero() 149 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits() 390 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 414 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName() 422 …AbsCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in AbsCase() 447 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 459 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 504 …SignCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in SignCase() 529 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 552 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderCommonFunctionTests.cpp | 131 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero() 157 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits() 170 static int getMaxNormalizedValueExponent (glu::Precision precision) in getMaxNormalizedValueExponent() 183 static int getMinNormalizedValueExponent (glu::Precision precision) in getMinNormalizedValueExponent() 196 static float makeFloatRepresentable (float f, glu::Precision precision) in makeFloatRepresentable() 341 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 369 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName() 434 …parent->getTestContext(), glu::DataType(scalarType + vecSize - 1), glu::Precision(prec), glu::Shad… in addFunctionCases() 600 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 612 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() [all …]
|
D | vktShaderIntegerFunctionTests.cpp | 113 inline int getShaderUintBitCount (glu::ShaderType shaderType, glu::Precision precision) in getShaderUintBitCount() 139 …::Random& rnd, glu::ShaderType shaderType, glu::DataType dataType, glu::Precision precision, deUin… in generateRandomInputData() 196 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix() 224 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::S… in getIntegerFuncCaseName() 305 …parent->getTestContext(), glu::DataType(scalarType + vecSize - 1), glu::Precision(prec), glu::Shad… in addFunctionCases() 463 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 517 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() 545 …UaddCarryCase (tcu::TestContext& testCtx, glu::DataType baseType, glu::Precision precision, glu::S… in UaddCarryCase() 573 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 625 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 556 NumberFormatter::with().precision(Precision::fixedFraction(20)) in unitMeasure() 816 NumberFormatter::with().precision(Precision::integer()), in roundingFraction() 831 NumberFormatter::with().precision(Precision::fixedFraction(3)), in roundingFraction() 846 NumberFormatter::with().precision(Precision::minFraction(1)), in roundingFraction() 861 NumberFormatter::with().precision(Precision::maxFraction(1)), in roundingFraction() 876 NumberFormatter::with().precision(Precision::minMaxFraction(1, 3)), in roundingFraction() 893 NumberFormatter::with().precision(Precision::fixedSignificantDigits(3)), in roundingFigures() 901 NumberFormatter::with().precision(Precision::fixedSignificantDigits(3)), in roundingFigures() 909 NumberFormatter::with().precision(Precision::fixedSignificantDigits(3)), in roundingFigures() 917 NumberFormatter::with().precision(Precision::minSignificantDigits(2)), in roundingFigures() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aVaryingInterpolationTests.cpp | 103 …InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precisio… 109 glu::Precision m_precision; 115 …olationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const… in InterpolationCase() 128 static bool isValidFloat (glu::Precision precision, float val) in isValidFloat() 143 static bool isValidFloatVec (glu::Precision precision, const tcu::Vector<float, Size>& vec) in isValidFloatVec() 308 glu::Precision minPrecision; in init() 327 …string baseName = string(glu::getPrecisionName((glu::Precision)precision)) + "_" + coordRanges[coo… in init() 329 …addChild(new InterpolationCase(m_context, baseName.c_str(), "", (glu::Precision)precision, coor… in init() 330 …addChild(new InterpolationCase(m_context, (baseName + "_proj").c_str(), "", (glu::Precision)precis… in init()
|