- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 79 for signum (0.03 seconds)
-
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
int i = rnd.nextInt(left.length); left[i] ^= (byte) (1 + rnd.nextInt(255)); assertThat(signum(comparator1.compare(left, right))) .isEqualTo(signum(UnsignedBytes.compare(left[i], right[i]))); assertThat(signum(comparator2.compare(left, right))) .isEqualTo(signum(UnsignedBytes.compare(left[i], right[i]))); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 13.5K bytes - Click Count (0) -
guava/src/com/google/common/math/LongMath.java
* deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of * p / q. * * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise. */ int signum = 1 | (int) ((p ^ q) >> (Long.SIZE - 1)); boolean increment; switch (mode) { case UNNECESSARY:Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 03 21:01:09 GMT 2025 - 46.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
BigIntegerMath.SQRT2_PRECOMPUTED_BITS); } public void testIsPowerOfTwo() { for (BigInteger x : ALL_BIGINTEGER_CANDIDATES) { // Checks for a single bit set. boolean expected = x.signum() > 0 & x.and(x.subtract(ONE)).equals(ZERO); assertEquals(expected, BigIntegerMath.isPowerOfTwo(x)); } } public void testLog2ZeroAlwaysThrows() { for (RoundingMode mode : ALL_ROUNDING_MODES) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 27.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
int expected = DoubleMath.fuzzyEquals(a, b, tolerance) ? 0 : Double.compare(a, b); int actual = DoubleMath.fuzzyCompare(a, b, tolerance); assertEquals(Integer.signum(expected), Integer.signum(actual)); } } } public void testFuzzyCompareBadTolerance() { for (double tolerance : BAD_TOLERANCE_CANDIDATES) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
@SuppressWarnings("InlineMeInliner") public void testCompare() { for (char x : VALUES) { for (char y : VALUES) { assertWithMessage("%s, %s", x, y) .that(Math.signum(Chars.compare(x, y))) .isEqualTo(Math.signum(Character.compare(x, y))); } } } public void testContains() { assertThat(Chars.contains(EMPTY, (char) 1)).isFalse();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 25.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
int expected = DoubleMath.fuzzyEquals(a, b, tolerance) ? 0 : Double.compare(a, b); int actual = DoubleMath.fuzzyCompare(a, b, tolerance); assertEquals(Integer.signum(expected), Integer.signum(actual)); } } } public void testFuzzyCompareBadTolerance() { for (double tolerance : BAD_TOLERANCE_CANDIDATES) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
cmd/test-utils_test.go
// Save signature finally. req.URL.RawQuery += "&Signature=" + url.QueryEscape(signature) return nil } // Sign given request using Signature V2. func signRequestV2(req *http.Request, accessKey, secretKey string) error { signer.SignV2(*req, accessKey, secretKey, false) return nil } // Sign given request using Signature V4. func signRequestV4(req *http.Request, accessKey, secretKey string) error {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 77K bytes - Click Count (0) -
src/cmd/asm/internal/asm/testdata/riscv64validation.s
VMSLTUVI $17, V2, V3 // ERROR "signed immediate 16 must be in range [-16, 15]" VMSLTUVI $-16, V2, V3 // ERROR "signed immediate -17 must be in range [-16, 15]" VMSGEVI $17, V2, V3 // ERROR "signed immediate 16 must be in range [-16, 15]" VMSGEVI $-16, V2, V3 // ERROR "signed immediate -17 must be in range [-16, 15]" VMSGEUVI $17, V2, V3 // ERROR "signed immediate 16 must be in range [-16, 15]"
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Nov 13 12:17:37 GMT 2025 - 42.1K bytes - Click Count (0) -
internal/grid/grid_types_msgp_test.go
zb0001-- field, err = dc.ReadMapKeyPtr() if err != nil { err = msgp.WrapError(err) return } switch msgp.UnsafeString(field) { case "OrgNum": z.OrgNum, err = dc.ReadInt() if err != nil { err = msgp.WrapError(err, "OrgNum") return } case "OrgString": z.OrgString, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "OrgString") return
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.1K bytes - Click Count (0) -
cmd/server_test.go
{serverType: "ErasureSD", signer: signerV4}, // Init and run test on ErasureSD backend with signature v2. {serverType: "ErasureSD", signer: signerV2}, // Init and run test on ErasureSD backend, with tls enabled. {serverType: "ErasureSD", signer: signerV4, secure: true}, // Init and run test on Erasure backend. {serverType: "Erasure", signer: signerV4}, // Init and run test on ErasureSet backend.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 118.1K bytes - Click Count (0)