Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for big4 (0.07 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		got    infDecAmount
    		expect string
    	}{
    		{bigDec(big.NewInt(1), 0), "1"},
    		{bigDec(big.NewInt(1), 1), "10"},
    		{bigDec(big.NewInt(5), 2), "500"},
    		{bigDec(big.NewInt(8), 3), "8000"},
    		{bigDec(big.NewInt(2), 0), "2"},
    		{bigDec(big.NewInt(1), -1), "0.1"},
    		{bigDec(big.NewInt(3), -2), "0.03"},
    		{bigDec(big.NewInt(4), -3), "0.004"},
    		{bigDec(big.NewInt(0).Add(bigMostPositive, big.NewInt(1)), 0), "9223372036854775808"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/loong64/asm.go

    			}
    			c.instoffset = int64(c.autosize) + a.Offset + c.ctxt.Arch.FixedFrameSize
    			if c.instoffset >= -BIG && c.instoffset < BIG {
    				return C_SAUTO
    			}
    			return C_LAUTO
    
    		case obj.NAME_NONE:
    			c.instoffset = a.Offset
    			if c.instoffset == 0 {
    				return C_ZOREG
    			}
    			if c.instoffset >= -BIG && c.instoffset < BIG {
    				return C_SOREG
    			}
    			return C_LOREG
    
    		case obj.NAME_GOTREF:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
  3. src/time/time_test.go

    }
    
    func TestTruncateRound(t *testing.T) {
    	var (
    		bsec  = new(big.Int)
    		bnsec = new(big.Int)
    		bd    = new(big.Int)
    		bt    = new(big.Int)
    		br    = new(big.Int)
    		bq    = new(big.Int)
    		b1e9  = new(big.Int)
    	)
    
    	b1e9.SetInt64(1e9)
    
    	testOne := func(ti, tns, di int64) bool {
    		t.Helper()
    
    		t0 := Unix(ti, tns).UTC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/crypto/x509/x509.go

    	"crypto/ecdsa"
    	"crypto/ed25519"
    	"crypto/elliptic"
    	"crypto/rsa"
    	"crypto/sha1"
    	"crypto/x509/pkix"
    	"encoding/asn1"
    	"encoding/pem"
    	"errors"
    	"fmt"
    	"internal/godebug"
    	"io"
    	"math/big"
    	"net"
    	"net/url"
    	"strconv"
    	"time"
    	"unicode"
    
    	// Explicitly import these for their crypto.RegisterHash init side-effects.
    	// Keep these as blank imports, even if they're imported above.
    	_ "crypto/sha1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  5. src/math/big/int_test.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package big
    
    import (
    	"bytes"
    	"encoding/hex"
    	"fmt"
    	"internal/testenv"
    	"math"
    	"math/rand"
    	"strconv"
    	"strings"
    	"testing"
    	"testing/quick"
    )
    
    func isNormalized(x *Int) bool {
    	if len(x.abs) == 0 {
    		return !x.neg
    	}
    	// len(x.abs) > 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  6. src/runtime/map.go

    		throw("elem size wrong")
    	}
    	if t.Key.Align_ > abi.MapBucketCount {
    		throw("key align too big")
    	}
    	if t.Elem.Align_ > abi.MapBucketCount {
    		throw("elem align too big")
    	}
    	if t.Key.Size_%uintptr(t.Key.Align_) != 0 {
    		throw("key size not a multiple of key align")
    	}
    	if t.Elem.Size_%uintptr(t.Elem.Align_) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/crypto/tls/tls_test.go

    	"crypto/ecdsa"
    	"crypto/elliptic"
    	"crypto/rand"
    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/asn1"
    	"encoding/json"
    	"encoding/pem"
    	"errors"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"math"
    	"math/big"
    	"net"
    	"os"
    	"reflect"
    	"slices"
    	"strings"
    	"testing"
    	"time"
    )
    
    var rsaCertPEM = `-----BEGIN CERTIFICATE-----
    MIIB0zCCAX2gAwIBAgIJAI/M7BYjwB+uMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  8. src/runtime/pprof/pprof_test.go

    func TestMathBigDivide(t *testing.T) {
    	testCPUProfile(t, nil, func(duration time.Duration) {
    		t := time.After(duration)
    		pi := new(big.Int)
    		for {
    			for i := 0; i < 100; i++ {
    				n := big.NewInt(2646693125139304345)
    				d := big.NewInt(842468587426513207)
    				pi.Div(n, d)
    			}
    			select {
    			case <-t:
    				return
    			default:
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_messages.go

    		}
    		b.AddBytes(v)
    		return nil
    	}))
    }
    
    // addUint64 appends a big-endian, 64-bit value to the cryptobyte.Builder.
    func addUint64(b *cryptobyte.Builder, v uint64) {
    	b.AddUint32(uint32(v >> 32))
    	b.AddUint32(uint32(v))
    }
    
    // readUint64 decodes a big-endian, 64-bit value into out and advances over it.
    // It reports whether the read was successful.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to generate private key: %w", err)
    	}
    
    	notBefore := time.Now()
    	notAfter := notBefore.Add(validFor)
    
    	serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
    	serialNumber, err := crand.Int(crand.Reader, serialNumberLimit)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to generate serial number: %w", err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
Back to top