Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for bignum (0.11 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. test/fibo.go

    // -opt         optimize memory allocation through reuse
    // -short       only print the first 10 digits of very large fibonacci numbers
    
    // Command fibo is a stand-alone test and benchmark to
    // evaluate the performance of bignum arithmetic written
    // entirely in Go.
    package main
    
    import (
    	"flag"
    	"fmt"
    	"math/big" // only used for printing
    	"os"
    	"strconv"
    	"testing"
    	"text/tabwriter"
    	"time"
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 08 22:22:58 UTC 2014
    - 6.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/go/testdata/script/trampoline_reuse_test.txt

    #define NOP2S22 NOP2S20 NOP2S20 NOP2S20 NOP2S20
    #define NOP2S24 NOP2S22 NOP2S22 NOP2S22 NOP2S22
    #define BIGNOP NOP2S24 NOP2S24
    TEXT main·BigAsm(SB),0,$0-0
            // Fill to the direct call limit so Func2 must generate a new trampoline.
            // As the implicit trampoline above is just barely unreachable.
            BIGNOP
            MOVD $main·Func2(SB), R3
    
    TEXT main·Func2(SB),0,$0-0
            CALL bar·Bar+0x400(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 14:31:23 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/bindm.c

    Cherry Mui <******@****.***> 1684339275 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 692 bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/bindm.go

    Cherry Mui <******@****.***> 1684339275 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top