Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 46) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/misc/
DFormattedFloatingDecimal.java66 int exp; in FormattedFloatingDecimal() local
70 exp = decExp; in FormattedFloatingDecimal()
71 this.decExponentRounded = exp; in FormattedFloatingDecimal()
72 fillCompatible(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
75 exp = applyPrecision(decExp, digits, nDigits, decExp + precision); in FormattedFloatingDecimal()
76 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
77 this.decExponentRounded = exp; in FormattedFloatingDecimal()
80 exp = applyPrecision(decExp, digits, nDigits, precision + 1); in FormattedFloatingDecimal()
81 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal()
82 this.decExponentRounded = exp; in FormattedFloatingDecimal()
[all …]
DFloatingDecimal.java1073 int exp = decExponent - kDigits;
1091 if (exp == 0 || dValue == 0.0) {
1094 else if (exp >= 0) {
1095 if (exp <= MAX_SMALL_TEN) {
1100 double rValue = dValue * SMALL_10_POW[exp];
1104 if (exp <= MAX_SMALL_TEN + slop) {
1112 double rValue = dValue * SMALL_10_POW[exp - slop];
1119 if (exp >= -MAX_SMALL_TEN) {
1123 double rValue = dValue / SMALL_10_POW[-exp];
1140 if (exp > 0) {
[all …]
/libcore/luni/src/main/java/java/math/
DMultiplication.java104 static BigInteger multiplyByTenPow(BigInteger val, long exp) { in multiplyByTenPow() argument
106 return ((exp < tenPows.length) in multiplyByTenPow()
107 ? multiplyByPositiveInt(val, tenPows[(int)exp]) in multiplyByTenPow()
108 : val.multiply(powerOf10(exp))); in multiplyByTenPow()
118 static BigInteger powerOf10(long exp) { in powerOf10() argument
120 int intExp = (int)exp; in powerOf10()
122 if (exp < bigTenPows.length) { in powerOf10()
125 } else if (exp <= 50) { in powerOf10()
133 if (exp <= Integer.MAX_VALUE) { in powerOf10()
146 long longExp = exp - Integer.MAX_VALUE; in powerOf10()
[all …]
/libcore/luni/src/test/resources/
Dmath_tests.csv4538 exp,0x1.0000000000002p0,0x1.ffffffffffffep-52
4539 exp,0x1.000000000012p0,0x1.1ffffffffff5ep-44
4540 exp,0x1.000000000208p0,0x1.03fffffffef7fp-39
4541 exp,0x1.00000000c1b59p0,0x1.836b2fff6d6cbp-33
4542 exp,0x1.000000033d397p0,0x1.9e9cbbfd6080bp-31
4543 exp,0x1.003af6c37c1d3p0,0x1.d77fd13d27fffp-11
4544 exp,0x1.016b4df3299d8p0,0x1.6a4d1af9cc989p-8
4545 exp,0x1.0ca4a41663fep0,0x1.8ae823850230bp-5
4546 exp,0x1.1538ea18a4585p0,0x1.46370d915991bp-4
4547 exp,0x1.47408cb9583cep0,0x1.f6e4c3ced7c72p-3
[all …]
Dmath_important_numbers.csv256 exp,0x1.e4efb75e4527ap3,0x1.5bf0a8b145769p1,2.718281828459045
257 exp,0x1.0e49787e20548p-4,-0x1.5bf0a8b145769p1,-2.718281828459045
258 exp,0x1.0p0,0x0.0p0,0.0
259 exp,0x1.0p0,-0x0.0p0,-0.0
260 exp,0x1.5bf0a8b14576ap1,0x1.0p0,1.0
261 exp,0x1.78b56362cef38p-2,-0x1.0p0,-1.0
262 exp,0x1.368b2fc6f960ap-1,-0x1.0p-1,-0.5
263 exp,0x1.a61298e1e069cp0,0x1.0p-1,0.5
264 exp,0x1.e989f5d6dff5ep-10,-0x1.921fb54442d18p2,-6.283185307179586
265 exp,0x1.3e0545d310facp-9,-0x1.815e630c155e1p2,-6.021385919380436
[all …]
/libcore/ojluni/src/main/java/java/lang/
DMath.java275 public static native double exp(double a); in exp() method in Math
1462 int exp = getExponent(d); in ulp() local
1464 switch(exp) { in ulp()
1472 assert exp <= DoubleConsts.MAX_EXPONENT && exp >= DoubleConsts.MIN_EXPONENT; in ulp() local
1475 exp = exp - (DoubleConsts.SIGNIFICAND_WIDTH-1); in ulp()
1476 if (exp >= DoubleConsts.MIN_EXPONENT) { in ulp()
1477 return powerOfTwoD(exp); in ulp()
1484 (exp - (DoubleConsts.MIN_EXPONENT - (DoubleConsts.SIGNIFICAND_WIDTH-1)) )); in ulp()
1513 int exp = getExponent(f); in ulp() local
1515 switch(exp) { in ulp()
[all …]
/libcore/luni/src/main/native/
DPortability.h42 #define TEMP_FAILURE_RETRY(exp) ({ \ argument
43 __typeof__(exp) _rc; \
45 _rc = (exp); \
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java66 int[] exp = new int[size]; in testIntRange() local
68 exp[p] = i; in testIntRange()
73 assertTrue(Arrays.equals(exp, inc)); in testIntRange()
76 expectedResult(exp).exercise(); in testIntRange()
86 int[] exp = new int[size]; in testIntRange() local
88 exp[p] = i; in testIntRange()
93 assertTrue(Arrays.equals(exp, inc)); in testIntRange()
96 expectedResult(exp).exercise(); in testIntRange()
156 long[] exp = new long[(int) size]; in testLongRange()
158 exp[(int) p] = i; in testLongRange()
[all …]
DGroupByOpTest.java138 .resultAsserter((act, exp, ord, par) -> { in testOps()
140 GroupByOpTest.assertMultiMapEquals(act, exp); in testOps()
143 GroupByOpTest.assertObjectEquals(act, exp); in testOps()
DForEachOpTest.java76 return (act, exp, ord, par) -> { in resultAsserter()
78 LambdaTestHelpers.assertContentsUnordered(act, exp); in resultAsserter()
81 LambdaTestHelpers.assertContents(act, exp); in resultAsserter() argument
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DSpliteratorTestHelper.java157 Collection<T> exp = Collections.unmodifiableList(fromForEach); in testSpliterator() local
160 testForEach(exp, supplier, boxingAdapter, asserter); in testSpliterator()
161 testTryAdvance(exp, supplier, boxingAdapter, asserter); in testSpliterator()
162 testMixedTryAdvanceForEach(exp, supplier, boxingAdapter, asserter); in testSpliterator()
163 testMixedTraverseAndSplit(exp, supplier, boxingAdapter, asserter); in testSpliterator()
165 testSplitOnce(exp, supplier, boxingAdapter, asserter); in testSpliterator()
166 testSplitSixDeep(exp, supplier, boxingAdapter, asserter); in testSpliterator()
167 testSplitUntilNull(exp, supplier, boxingAdapter, asserter); in testSpliterator()
198 Collection<T> exp, in testForEach() argument
220 assertEquals(sizeIfKnown, exp.size()); in testForEach()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DSpliteratorTestHelper.java157 Collection<T> exp = Collections.unmodifiableList(fromForEach); in testSpliterator() local
160 testForEach(exp, supplier, boxingAdapter, asserter); in testSpliterator()
161 testTryAdvance(exp, supplier, boxingAdapter, asserter); in testSpliterator()
162 testMixedTryAdvanceForEach(exp, supplier, boxingAdapter, asserter); in testSpliterator()
163 testMixedTraverseAndSplit(exp, supplier, boxingAdapter, asserter); in testSpliterator()
165 testSplitOnce(exp, supplier, boxingAdapter, asserter); in testSpliterator()
166 testSplitSixDeep(exp, supplier, boxingAdapter, asserter); in testSpliterator()
167 testSplitUntilNull(exp, supplier, boxingAdapter, asserter); in testSpliterator()
198 Collection<T> exp, in testForEach() argument
220 assertEquals(sizeIfKnown, exp.size()); in testForEach()
[all …]
DOpTestCase.java261 ResultAsserter<Iterable<U>> resultAsserter = (act, exp, ord, par) -> {
263 LambdaTestHelpers.assertContentsUnordered(act, exp);
266 LambdaTestHelpers.assertContentsEqual(act, exp);
516 …ResultAsserter<R> resultAsserter = (act, exp, ord, par) -> LambdaTestHelpers.assertContentsEqual(a…
532 resultAsserter = (act, exp, ord, par) -> equalityAsserter.accept(act, exp); in equalator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerMultiplyTest.java282 int exp = -5; in testPowException() local
285 aNumber.pow(exp); in testPowException()
297 int exp = 5; in testPowNegativeNumToOddExp() local
303 BigInteger result = aNumber.pow(exp); in testPowNegativeNumToOddExp()
318 int exp = 4; in testPowNegativeNumToEvenExp() local
323 BigInteger result = aNumber.pow(exp); in testPowNegativeNumToEvenExp()
338 int exp = 0; in testPowNegativeNumToZeroExp() local
341 BigInteger result = aNumber.pow(exp); in testPowNegativeNumToZeroExp()
356 int exp = 5; in testPowPositiveNum() local
362 BigInteger result = aNumber.pow(exp); in testPowPositiveNum()
[all …]
DBigIntegerModPowTest.java42 BigInteger exp = new BigInteger(eSign, eBytes); in testModPowException() local
45 aNumber.modPow(exp, modulus); in testModPowException()
70 BigInteger exp = new BigInteger(eSign, eBytes); in testModPowPosExp() local
72 BigInteger result = aNumber.modPow(exp, modulus); in testModPowPosExp()
93 BigInteger exp = new BigInteger(eSign, eBytes); in testModPowNegExp() local
95 BigInteger result = aNumber.modPow(exp, modulus); in testModPowNegExp()
105 BigInteger exp = new BigInteger("0"); in testModPowZeroExp() local
111 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp()
113 base[i].modPow(exp, mod[j])); in testModPowZeroExp()
120 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DFormattedFloatingDecimal.java64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument
73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillDecimal() argument
78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillScientific() argument
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DDESedeKeySpecTest.java132 byte[] exp = new byte[24]; in testGetKey()
133 System.arraycopy(key1, 2, exp, 0, 24); in testGetKey()
135 + "in constructor.", Arrays.equals(exp, res)); in testGetKey()
DDESKeySpecTest.java187 byte[] exp = new byte[8]; in testGetKey()
188 System.arraycopy(key1, 2, exp, 0, 8); in testGetKey()
190 + "in constructor.", Arrays.equals(exp, res)); in testGetKey()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java3369 char[] exp = (value == 0.0)
3374 newW = adjustWidth(width - exp.length - 1, f, neg);
3386 char sign = exp[0];
3390 char[] tmp = new char[exp.length - 1];
3391 System.arraycopy(exp, 1, tmp, 0, exp.length - 1);
3420 char[] exp;
3424 exp = null;
3431 exp = fd.getExponent();
3436 if (exp != null) {
3450 if (exp != null)
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java772 long exp; in printHeaders() local
773 exp = Support_TestWebData.testParams[testNum].testExp; in printHeaders()
775 + df.format(exp) + " GMT"); in printHeaders()
794 long exp; in printHeaders() local
795 exp = Support_TestWebData.testParams[testNum].testExp; in printHeaders()
797 + df.format(exp) + " GMT"); in printHeaders()
/libcore/luni/src/main/java/libcore/util/
DFP16.java249 int exp = 25 - (abs >> 10); in rint() local
250 int mask = (1 << exp) - 1; in rint()
251 result += ((1 << (exp - 1)) - (~(abs >> exp) & 1)); in rint()
/libcore/ojluni/src/main/native/
DMath.c61 return exp(d); in Math_exp()
154 FAST_NATIVE_METHOD(Math, exp, "(D)D"),
Djfdlibm.h43 #define exp jexp macro
/libcore/ojluni/annotations/hiddenapi/java/text/
DDecimalFormatSymbols.java196 void setExponentialSymbol(char exp) { in setExponentialSymbol() argument
200 public void setExponentSeparator(java.lang.String exp) { in setExponentSeparator() argument
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java549 void setExponentialSymbol(char exp) in setExponentialSymbol() argument
551 exponential = exp; in setExponentialSymbol()
565 public void setExponentSeparator(String exp) in setExponentSeparator() argument
567 if (exp == null) { in setExponentSeparator()
570 exponentialSeparator = exp; in setExponentSeparator()

12