- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 159 for signum (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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/src/com/google/common/math/BigIntegerMath.java
@Override double roundToDoubleArbitrarily(BigInteger bigInteger) { return DoubleUtils.bigToDouble(bigInteger); } @Override int sign(BigInteger bigInteger) { return bigInteger.signum(); } @Override BigInteger toX(double d, RoundingMode mode) { return DoubleMath.roundToBigInteger(d, mode); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.8K 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) -
guava-tests/test/com/google/common/math/IntMathTest.java
public void testIsPowerOfTwo() { for (int x : ALL_INTEGER_CANDIDATES) { // Checks for a single bit set. BigInteger bigX = BigInteger.valueOf(x); boolean expected = (bigX.signum() > 0) && (bigX.bitCount() == 1); assertEquals(expected, IntMath.isPowerOfTwo(x)); } } public void testLog2ZeroAlwaysThrows() { for (RoundingMode mode : ALL_ROUNDING_MODES) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 24.1K bytes - Click Count (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* or IPv6 respectively */ private static InetAddress fromBigInteger(BigInteger address, boolean isIpv6) { checkArgument(address.signum() >= 0, "BigInteger must be greater than or equal to 0"); int numBytes = isIpv6 ? 16 : 4; byte[] addressBytes = address.toByteArray(); byte[] targetCopyArray = new byte[numBytes];
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 47.4K bytes - Click Count (0) -
src/cmd/asm/internal/arch/arch.go
instructions["JGE"] = x86.AJGE /* greater than or equal (signed) (SF = OF) */ instructions["JGT"] = x86.AJGT /* greater than (signed) (ZF = 0 && SF = OF) */ instructions["JHI"] = x86.AJHI /* higher (unsigned) (CF = 0 && ZF = 0) */ instructions["JHS"] = x86.AJCC /* alternate */ instructions["JL"] = x86.AJLT /* alternate */ instructions["JLE"] = x86.AJLE /* less than or equal (signed) (ZF = 1 || SF != OF) */
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Nov 13 12:17:37 GMT 2025 - 21.7K bytes - Click Count (0) -
cmd/auth-handler_test.go
{ authT: authTypePresigned, pass: true, }, // Test 3 - supported s3 type signed. { authT: authTypeSigned, pass: true, }, // Test 4 - supported s3 type with post policy. { authT: authTypePostPolicy, pass: true, }, // Test 5 - supported s3 type with streaming signed. { authT: authTypeStreamingSigned, pass: true, },Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 15.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
* ``` * * The attacker compromises a CA. They take the public key from an intermediate certificate * signed by the compromised CA's certificate and uses it in a non-CA certificate. They ask the * pinned CA above to sign it for non-certificate-authority uses: * * ``` * pinnedRoot (trusted by CertificatePinner) * -> pinnedIntermediate (trusted by CertificatePinner) * -> attackerSwitch
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 24.3K bytes - Click Count (2) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
response.readParameterWordsWireFormat(buffer, 0); // File size is stored as signed int long expectedSize = (int) fileSize; assertEquals(expectedSize, response.getSize()); } @Test void testFileSizeOverflow() { // Test file size that overflows signed int response = new SmbComQueryInformationResponse(mockConfig, 0L);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
internal/jwt/parser.go
} if err = claims.UnmarshalJSON(buf[:n]); err != nil { return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed} } for _, signer := range hmacSigners { if string(alg) == signer.Name { return signer, nil } } return nil, jwtgo.NewValidationError(fmt.Sprintf("signing method (%s) is unavailable.", string(alg)), jwtgo.ValidationErrorUnverifiable) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.1K bytes - Click Count (0)