Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 80) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java193 private static long mix64(long z) { in mix64() argument
194 z = (z ^ (z >>> 30)) * 0xbf58476d1ce4e5b9L; in mix64()
195 z = (z ^ (z >>> 27)) * 0x94d049bb133111ebL; in mix64()
196 return z ^ (z >>> 31); in mix64()
203 private static int mix32(long z) { in mix32() argument
204 z = (z ^ (z >>> 33)) * 0x62a9d9ed799705f5L; in mix32()
205 return (int)(((z ^ (z >>> 28)) * 0xcb24d0a5c88c35b3L) >>> 32); in mix32()
213 private static long mixGamma(long z) { in mixGamma() argument
214 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; // MurmurHash3 mix constants in mixGamma()
215 z = (z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L; in mixGamma()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DByteTest.java66 final byte z = -1; // 255 in testCompareUnsigned()
70 assertTrue(Byte.compareUnsigned(a, z) < 0); in testCompareUnsigned()
72 assertTrue(Byte.compareUnsigned(b, z) < 0); in testCompareUnsigned()
73 assertTrue(Byte.compareUnsigned(y, z) < 0); in testCompareUnsigned()
78 assertTrue(Byte.compareUnsigned(z, a) > 0); in testCompareUnsigned()
79 assertTrue(Byte.compareUnsigned(z, b) > 0); in testCompareUnsigned()
80 assertTrue(Byte.compareUnsigned(z, y) > 0); in testCompareUnsigned()
85 assertTrue(Byte.compareUnsigned(z, z) == 0); in testCompareUnsigned()
90 assertTrue(Byte.compareUnsigned(Byte.MIN_VALUE, z) < 0); in testCompareUnsigned()
91 assertTrue(Byte.compareUnsigned(Byte.MAX_VALUE, z) < 0); in testCompareUnsigned()
DShortTest.java66 final short z = -1; // 65535 in testCompareUnsigned() local
70 assertTrue(Short.compareUnsigned(a, z) < 0); in testCompareUnsigned()
72 assertTrue(Short.compareUnsigned(b, z) < 0); in testCompareUnsigned()
73 assertTrue(Short.compareUnsigned(y, z) < 0); in testCompareUnsigned()
78 assertTrue(Short.compareUnsigned(z, a) > 0); in testCompareUnsigned()
79 assertTrue(Short.compareUnsigned(z, b) > 0); in testCompareUnsigned()
80 assertTrue(Short.compareUnsigned(z, y) > 0); in testCompareUnsigned()
85 assertTrue(Short.compareUnsigned(z, z) == 0); in testCompareUnsigned()
90 assertTrue(Short.compareUnsigned(Short.MIN_VALUE, z) < 0); in testCompareUnsigned()
91 assertTrue(Short.compareUnsigned(Short.MAX_VALUE, z) < 0); in testCompareUnsigned()
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java162 int z = Math.divideExact(x, y); in testIntegerExact() local
167 if (z != quotient) { in testIntegerExact()
169 z + "; expected: " + quotient); in testIntegerExact()
172 z = StrictMath.divideExact(x, y); in testIntegerExact()
173 if (z != quotient) { in testIntegerExact()
175 z + "; expected: " + q); in testIntegerExact()
196 int z = Math.floorDivExact(x, y); in testIntegerExact() local
201 if (z != q) { in testIntegerExact()
203 z + "; expected: " + q); in testIntegerExact()
206 z = StrictMath.floorDivExact(x, y); in testIntegerExact()
[all …]
DLog10Tests.java137 double z = Double.NaN; in testLog10() local
169 z = input[i] - 1.0; in testLog10()
170 double expected = (z - (z * z) * 0.5) / LN_10; in testLog10()
/libcore/ojluni/src/test/java/lang/invoke/
DPermuteArgsTest.java65 static Object list3I(int x, int y, int z) { in list3I() argument
66 return Arrays.asList(x, y, z); in list3I()
68 static Object list4I(int w, int x, int y, int z) { in list4I() argument
69 return Arrays.asList(w, x, y, z); in list4I()
74 static Object list3J(long x, long y, long z) { in list3J() argument
75 return Arrays.asList(x, y, z); in list3J()
77 static Object list4J(long w, long x, long y, long z) { in list4J() argument
78 return Arrays.asList(w, x, y, z); in list4J()
80 static Object list2I2J(int w, int x, long y, long z) { in list2I2J() argument
81 return Arrays.asList(w, x, y, z); in list2I2J()
[all …]
DMethodHandlesCastFailureTest.java143 Object z = surprise.invokeExact(x); in testCastFailure() local
144 assertEquals(x, z); in testCastFailure()
150 Object z = surprise.invokeExact(x); in testCastFailure() local
151 System.out.println("Failed to throw; got z="+z); in testCastFailure()
/libcore/ojluni/src/test/java/util/Random/
DRandomTestMoments.java144 double z = 1.0; in testMomentsGaussian() local
146 absoluteMoments[k] += Math.abs(z); in testMomentsGaussian()
147 z *= v; in testMomentsGaussian()
161 double z = 1.0; in testMomentsExponential() local
163 moments[k] += z; in testMomentsExponential()
164 z *= v; in testMomentsExponential()
178 double z = 1.0; in testMomentsUniform() local
180 moments[k] += z; in testMomentsUniform()
181 z *= v; in testMomentsUniform()
/libcore/luni/src/main/native/
Djava_lang_StringToReal.cpp84 jdouble z);
269 static jdouble doubleAlgorithm(JNIEnv* env, uint64_t* f, int32_t length, jint e, jdouble z) { in doubleAlgorithm() argument
283 m = doubleMantissa (z); in doubleAlgorithm()
284 k = doubleExponent (z); in doubleAlgorithm()
380 && DOUBLE_TO_LONGBITS(z) != DOUBLE_NORMAL_MASK) in doubleAlgorithm()
385 --DOUBLE_TO_LONGBITS (z); in doubleAlgorithm()
403 --DOUBLE_TO_LONGBITS (z); in doubleAlgorithm()
412 --DOUBLE_TO_LONGBITS (z); in doubleAlgorithm()
417 ++DOUBLE_TO_LONGBITS (z); in doubleAlgorithm()
423 --DOUBLE_TO_LONGBITS (z); in doubleAlgorithm()
[all …]
Dcbigint.h92 uint64_t doubleMantissa(jdouble z);
96 int32_t doubleExponent(jdouble z);
103 uint32_t floatMantissa(jfloat z);
105 int32_t floatExponent(jfloat z);
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarUtils.java144 int z = mod(x, y); in amod() local
145 return (z == 0) ? y : z; in amod()
149 long z = mod(x, y); in amod() local
150 return (z == 0) ? y : z; in amod()
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java263 public static long[] convertSeedBytesToLongs(byte[] seed, int n, int z) { in convertSeedBytesToLongs() argument
278 for (int j = n - z; j < n; j++) { in convertSeedBytesToLongs()
285 for (int j = n - z; j < n; j++) { in convertSeedBytesToLongs()
306 public static int[] convertSeedBytesToInts(byte[] seed, int n, int z) { in convertSeedBytesToInts() argument
321 for (int j = n - z; j < n; j++) { in convertSeedBytesToInts()
328 for (int j = n - z; j < n; j++) { in convertSeedBytesToInts()
827 public static long mixMurmur64(long z) { in mixMurmur64() argument
828 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; in mixMurmur64()
829 z = (z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L; in mixMurmur64()
830 return z ^ (z >>> 33); in mixMurmur64()
[all …]
/libcore/ojluni/src/test/java/util/regex/
DTestCases.txt108 z
123 z(a|ac)b
150 za-9z
154 za-9z
171 [^[a-z]]
175 [^[a-z][A-Z]]
188 z
189 true z 0
195 [^a-m&&m-z]
199 [^a-m&&m-z&&a-c]
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java134 for (long z : zs) assertEquals(z, x.convert(z, x)); in testConvert()
357 for (long z : new long[] {0, 1, -1, max, -max}) in testToNanosSaturate()
358 assertEquals(z * ratio, x.toNanos(z)); in testToNanosSaturate()
383 for (long z : new long[] {0, 1, -1, max, -max}) in testToMicrosSaturate()
384 assertEquals(z * ratio, x.toMicros(z)); in testToMicrosSaturate()
409 for (long z : new long[] {0, 1, -1, max, -max}) in testToMillisSaturate()
410 assertEquals(z * ratio, x.toMillis(z)); in testToMillisSaturate()
435 for (long z : new long[] {0, 1, -1, max, -max}) in testToSecondsSaturate()
436 assertEquals(z * ratio, x.toSeconds(z)); in testToSecondsSaturate()
461 for (long z : new long[] {0, 1, -1, max, -max}) in testToMinutesSaturate()
[all …]
DAtomicReferenceTest.java154 AtomicReference z = serialClone(x); in testSerialization() local
155 assertNotSame(y, z); in testSerialization()
158 assertEquals(one, z.get()); in testSerialization()
/libcore/ojluni/src/test/java/math/BigInteger/
DModPow.java57 BigInteger z = base.modPow(exp, m); in testModPow() local
59 Assert.assertEquals(z, w, in testModPow()
60 base +" ** " + exp + " mod "+ m + " modPow : " + z + "pow.mod: " + w); in testModPow()
DBigIntegerTest.java221 BigInteger z = x; in pow() local
224 z = z.multiply(x); in pow()
226 Assert.assertEquals(y, z); in pow()
418 BigInteger z = v.shiftLeft(b); in multiplyLarge() local
421 BigInteger karatsubaMultiplyResult = w.multiply(z); in multiplyLarge()
511 BigInteger z = v.multiply(BigInteger.ONE.shiftLeft(b)); in divideLarge() local
516 BigInteger[] bzResult = w.divideAndRemainder(z); in divideLarge()
587 BigInteger z = x.and(x.negate()); in bitOps() local
589 for (j=0; j<z.bitLength() && !z.testBit(j); j++) in bitOps()
602 BigInteger z = x.xor(y); in bitwise() local
[all …]
DLargeValueExceptions.java109 BigInteger z = x.multiply(y); in multiplyNoOverflow() local
125 BigInteger z = x.multiply(y); in multiplyIndefiniteOverflowSuccess() local
141 BigInteger z = x.multiply(y); in multiplyIndefiniteOverflowFailure() local
159 BigInteger z = x.multiply(y); in multiplyDefiniteOverflow() local
/libcore/ojluni/src/test/java/util/EnumMap/
DToArray.java46 Object[] z = m.entrySet().toArray(); in testToArray() local
47 Assert.assertEquals(z.getClass(), Object[].class); in testToArray()
48 Assert.assertEquals(z.length, 2); in testToArray()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java636 private static void destructiveMulAdd(int[] x, int y, int z) { in destructiveMulAdd() argument
639 long zlong = z & LONG_MASK; in destructiveMulAdd()
1061 private static BigInteger lucasLehmerSequence(int z, BigInteger k, BigInteger n) {
1062 BigInteger d = BigInteger.valueOf(z);
1121 BigInteger z = b.modPow(m, this); in passesMillerRabin() local
1122 while (!((j == 0 && z.equals(ONE)) || z.equals(thisMinusOne))) { in passesMillerRabin()
1123 if (j > 0 && z.equals(ONE) || ++j == a) in passesMillerRabin()
1125 z = z.modPow(TWO, this); in passesMillerRabin()
1802 private static int[] multiplyToLen(int[] x, int xlen, int[] y, int ylen, int[] z) { in multiplyToLen() argument
1805 return implMultiplyToLen(x, xlen, y, ylen, z); in multiplyToLen()
[all …]
DMutableBigInteger.java1007 void multiply(MutableBigInteger y, MutableBigInteger z) { in multiply() argument
1013 if (z.value.length < newLen) in multiply()
1014 z.value = new int[newLen]; in multiply()
1015 z.offset = 0; in multiply()
1016 z.intLen = newLen; in multiply()
1023 z.value[k] = (int)product; in multiply()
1026 z.value[xLen-1] = (int)carry; in multiply()
1034 (z.value[k] & LONG_MASK) + carry; in multiply()
1035 z.value[k] = (int)product; in multiply()
1038 z.value[i] = (int)carry; in multiply()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java146 private static int mix32(long z) { in mix32() argument
147 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; in mix32()
148 return (int)(((z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L) >>> 32); in mix32()
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicReferenceTest.java131 AtomicReference z = serialClone(x); in testSerialization() local
132 assertNotSame(y, z); in testSerialization()
135 assertEquals(one, z.get()); in testSerialization()
DLongAdderTest.java99 LongAdder z = serialClone(x); in testSerialization() local
100 assertNotSame(y, z); in testSerialization()
103 assertEquals(-22, z.sum()); in testSerialization()
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java158 @TestAnnotation3(z = false)
160 @TestAnnotation3(z = false)
165 @TestAnnotation3(z = true)
167 @TestAnnotation3(z = true)
170 @TestAnnotation3(z = false)
172 @TestAnnotation3(z = true)

1234