Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for bignum (0.59 sec)

  1. src/crypto/internal/boring/boring.go

    func bnToBig(bn *C.GO_BIGNUM) BigInt {
    	x := make(BigInt, (C._goboringcrypto_BN_num_bytes(bn)+wordBytes-1)/wordBytes)
    	if C._goboringcrypto_BN_bn2le_padded(wbase(x), C.size_t(len(x)*wordBytes), bn) == 0 {
    		panic("boringcrypto: bignum conversion failed")
    	}
    	return x
    }
    
    func bigToBn(bnp **C.GO_BIGNUM, b BigInt) bool {
    	if *bnp != nil {
    		C._goboringcrypto_BN_free(*bnp)
    		*bnp = nil
    	}
    	if b == nil {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    				fixme:         "decoding cbor data tagged with 1 produces time.Time instead of RFC3339 timestamp string",
    				assertOnError: assertNilError,
    			},
    		})
    
    		group(t, "unsigned bignum", []test{
    			{
    				name:  "rejected",
    				in:    hex("c249010000000000000000"), // 2(18446744073709551616)
    				fixme: "decoding cbor data tagged with 2 produces big.Int instead of rejecting",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  3. src/go/build/deps_test.go

    	crypto/internal/edwards25519,
    	crypto/md5,
    	crypto/rc4,
    	crypto/sha1,
    	crypto/sha256,
    	crypto/sha512,
    	golang.org/x/crypto/sha3
    	< CRYPTO;
    
    	CGO, fmt, net !< CRYPTO;
    
    	# CRYPTO-MATH is core bignum-based crypto - no cgo, net; fmt now ok.
    	CRYPTO, FMT, math/big
    	< crypto/internal/boring/bbig
    	< crypto/rand
    	< crypto/internal/mlkem768
    	< crypto/ed25519
    	< encoding/asn1
    	< golang.org/x/crypto/cryptobyte/asn1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

    			wantResult: `{"_1":3}`,
    		},
    		{
    			name:  "bignum-1",
    			query: `SELECT id from s3object s WHERE s.id <= 9223372036854775807`,
    			wantResult: `{"id":0}
    {"id":1}
    {"id":2}
    {"id":3}`,
    		},
    		{
    			name:  "bignum-2",
    			query: `SELECT id from s3object s WHERE s.id >= -9223372036854775808`,
    			wantResult: `{"id":0}
    {"id":1}
    {"id":2}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

          if (normalizedBits + productBits >= Long.SIZE) {
            bignums.add(BigInteger.valueOf(product));
            product = 1;
            productBits = 0;
          }
          product *= normalizedNum;
          productBits = LongMath.log2(product, FLOOR) + 1;
        }
        // Check for leftovers.
        if (product > 1) {
          bignums.add(BigInteger.valueOf(product));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/BigIntegerMath.java

          if (normalizedBits + productBits >= Long.SIZE) {
            bignums.add(BigInteger.valueOf(product));
            product = 1;
            productBits = 0;
          }
          product *= normalizedNum;
          productBits = LongMath.log2(product, FLOOR) + 1;
        }
        // Check for leftovers.
        if (product > 1) {
          bignums.add(BigInteger.valueOf(product));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractVersionTest.java

                assertEquals(1, Integer.signum(v1.compareTo(v2)), "expected " + v1 + " > " + v2);
                assertEquals(-1, Integer.signum(v2.compareTo(v1)), "expected " + v2 + " < " + v1);
                assertNotEquals(v1, v2, "expected " + v1 + " != " + v2);
                assertNotEquals(v2, v1, "expected " + v2 + " != " + v1);
            } else if (expected < 0) {
                assertEquals(-1, Integer.signum(v1.compareTo(v2)), "expected " + v1 + " < " + v2);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceReportScenario.groovy

                return Double.NEGATIVE_INFINITY
            }
            def firstExecution = currentExecutions[0]
            double signum = Math.signum(firstExecution.differencePercentage)
            if (signum == 0.0d) {
                signum = -1.0
            }
            return firstExecution.confidencePercentage * signum
        }
    
        double getDifferencePercentage() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. src/os/signal/signal.go

    					delete(handlers.m, c)
    				}
    			}
    		}
    
    		action(n)
    	}
    
    	if len(sigs) == 0 {
    		for n := 0; n < numSig; n++ {
    			remove(n)
    		}
    	} else {
    		for _, s := range sigs {
    			remove(signum(s))
    		}
    	}
    }
    
    // Ignore causes the provided signals to be ignored. If they are received by
    // the program, nothing will happen. Ignore undoes the effect of any prior
    // calls to [Notify] for the provided signals.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top