Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java190 private static long mix64(long z) { in mix64() argument
191 z = (z ^ (z >>> 30)) * 0xbf58476d1ce4e5b9L; in mix64()
192 z = (z ^ (z >>> 27)) * 0x94d049bb133111ebL; in mix64()
193 return z ^ (z >>> 31); in mix64()
199 private static int mix32(long z) { in mix32() argument
200 z = (z ^ (z >>> 33)) * 0x62a9d9ed799705f5L; in mix32()
201 return (int)(((z ^ (z >>> 28)) * 0xcb24d0a5c88c35b3L) >>> 32); in mix32()
207 private static long mixGamma(long z) { in mixGamma() argument
208 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; // MurmurHash3 mix constants in mixGamma()
209 z = (z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L; in mixGamma()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
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()
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()
/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);
Dcbigint.cpp632 doubleMantissa (jdouble z) in doubleMantissa() argument
634 uint64_t m = DOUBLE_TO_LONGBITS (z); in doubleMantissa()
645 doubleExponent (jdouble z) in doubleExponent() argument
648 int32_t k = HIGH_U32_FROM_VAR (z) >> 20; in doubleExponent()
658 uint32_t floatMantissa(jfloat z) { in floatMantissa() argument
659 uint32_t m = FLOAT_TO_INTBITS (z); in floatMantissa()
670 floatExponent (jfloat z) in floatExponent() argument
673 int32_t k = FLOAT_TO_INTBITS (z) >> 23; in floatExponent()
/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/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()
DLongAdderTest.java122 LongAdder z = serialClone(x); in testSerialization() local
123 assertNotSame(y, z); in testSerialization()
126 assertEquals(-22, z.sum()); in testSerialization()
DAtomicBooleanTest.java157 AtomicBoolean z = serialClone(x); in testSerialization() local
160 assertTrue(z.get()); in testSerialization()
DAtomicLongTest.java231 AtomicLong z = serialClone(x); in testSerialization() local
232 assertNotSame(y, z); in testSerialization()
235 assertEquals(-22, z.get()); in testSerialization()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java128 private static long mix64(long z) { in mix64() argument
129 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; in mix64()
130 z = (z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L; in mix64()
131 return z ^ (z >>> 33); in mix64()
134 private static int mix32(long z) { in mix32() argument
135 z = (z ^ (z >>> 33)) * 0xff51afd7ed558ccdL; in mix32()
136 return (int)(((z ^ (z >>> 33)) * 0xc4ceb9fe1a85ec53L) >>> 32); in mix32()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DCallSitesTest.java110 int z = (int) site.dynamicInvoker().invokeExact(2, 6); in commonMutableCallSitesTest() local
111 assertEquals(8, z); in commonMutableCallSitesTest()
140 private static int add3(int x, int y, int z) { in add3() argument
141 return x + y + z; in add3()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java571 private static void destructiveMulAdd(int[] x, int y, int z) { in destructiveMulAdd() argument
574 long zlong = z & LONG_MASK; in destructiveMulAdd()
980 …@NonNull private static BigInteger lucasLehmerSequence(int z, @NonNull BigInteger k, @NonNull BigI…
981 BigInteger d = BigInteger.valueOf(z);
1040 BigInteger z = b.modPow(m, this); in passesMillerRabin() local
1041 while (!((j == 0 && z.equals(ONE)) || z.equals(thisMinusOne))) { in passesMillerRabin()
1042 if (j > 0 && z.equals(ONE) || ++j == a) in passesMillerRabin()
1044 z = z.modPow(TWO, this); in passesMillerRabin()
1686 private static int[] multiplyToLen(int[] x, int xlen, int[] y, int ylen, int[] z) { in multiplyToLen() argument
1690 if (z == null || z.length < (xlen+ ylen)) in multiplyToLen()
[all …]
DMutableBigInteger.java1002 void multiply(MutableBigInteger y, MutableBigInteger z) { in multiply() argument
1008 if (z.value.length < newLen) in multiply()
1009 z.value = new int[newLen]; in multiply()
1010 z.offset = 0; in multiply()
1011 z.intLen = newLen; in multiply()
1018 z.value[k] = (int)product; in multiply()
1021 z.value[xLen-1] = (int)carry; in multiply()
1029 (z.value[k] & LONG_MASK) + carry; in multiply()
1030 z.value[k] = (int)product; in multiply()
1033 z.value[i] = (int)carry; in multiply()
[all …]
/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()
DAtomicLongTest.java208 AtomicLong z = serialClone(x); in testSerialization() local
209 assertNotSame(y, z); in testSerialization()
212 assertEquals(-22, z.get()); in testSerialization()
DAtomicBooleanTest.java131 AtomicBoolean z = serialClone(x); in testSerialization() local
134 assertTrue(z.get()); 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)
DTestAnnotation3.java16 boolean z() default false; in z() method
DTestAnnotation3b.java16 boolean z() default false; in z() method
/libcore/ojluni/src/test/
Dartrun37 if [ z"$BASH_SOURCE" != z ]; then
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationTestClass.java169 boolean z; field in SerializationTestClass.TestFieldSignatures
232 public TestConstructorSignature(boolean z, byte b, char c, short s, in TestConstructorSignature() argument
294 public void method(boolean z, byte b, char c, short s, int i, float f, in method() argument

123