Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for BeUint64 (0.12 sec)

  1. src/syscall/dir_plan9.go

    	return byteorder.LeUint32(b), b[4:]
    }
    
    // gbit64 reads a 64-bit number in little-endian order from b and returns it with the remaining slice of b.
    func gbit64(b []byte) (uint64, []byte) {
    	return byteorder.LeUint64(b), b[8:]
    }
    
    // gstring reads a string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string with the remaining slice of b and a boolean. If the length is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/crypto/ecdsa/ecdsa_legacy.go

    	x, y := c.Add(x1, y1, x2, y2)
    
    	if x.Sign() == 0 && y.Sign() == 0 {
    		return false
    	}
    	x.Mod(x, N)
    	return x.Cmp(r) == 0
    }
    
    var one = new(big.Int).SetInt64(1)
    
    // randFieldElement returns a random element of the order of the given
    // curve using the procedure given in FIPS 186-4, Appendix B.5.2.
    func randFieldElement(c elliptic.Curve, rand io.Reader) (k *big.Int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/internal/poll/fd_wasip1.go

    	switch size {
    	case 1:
    		return uint64(b[0])
    	case 2:
    		return uint64(byteorder.LeUint16(b))
    	case 4:
    		return uint64(byteorder.LeUint32(b))
    	case 8:
    		return uint64(byteorder.LeUint64(b))
    	default:
    		panic("internal/poll: readInt with unsupported size")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. pilot/pkg/xds/discovery.go

    		concurrentPushLimit: make(chan struct{}, features.PushThrottle),
    		RequestRateLimit:    rate.NewLimiter(rate.Limit(features.RequestLimit), 1),
    		InboundUpdates:      atomic.NewInt64(0),
    		CommittedUpdates:    atomic.NewInt64(0),
    		pushChannel:         make(chan *model.PushRequest, 10),
    		pushQueue:           NewPushQueue(),
    		debugHandlers:       map[string]string{},
    		adsClients:          map[string]*Connection{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 20:21:09 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. pilot/pkg/xds/discovery_test.go

    						return
    					}
    					atomic.AddInt32(&fullPushes, 1)
    					time.Sleep(opts.debounceMax * 2)
    					<-pushingCh
    				} else {
    					atomic.AddInt32(&partialPushes, 1)
    				}
    			}
    			updateSent := uatomic.NewInt64(0)
    
    			wg.Add(1)
    			go func() {
    				debounce(updateCh, stopCh, opts, fakePush, updateSent)
    				wg.Done()
    			}()
    
    			expect := func(expectedPartial, expectedFull int32) {
    				t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. src/encoding/gob/decode.go

    func decUint32(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeUint()
    	if math.MaxUint32 < v {
    		error_(i.ovfl)
    	}
    	value.SetUint(v)
    }
    
    // decInt64 decodes an integer and stores it as an int64 in value.
    func decInt64(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeInt()
    	value.SetInt(v)
    }
    
    // decUint64 decodes an unsigned integer and stores it as a uint64 in value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  7. src/math/big/float.go

    // no effect).
    func (z *Float) SetUint64(x uint64) *Float {
    	return z.setBits64(false, x)
    }
    
    // SetInt64 sets z to the (possibly rounded) value of x and returns z.
    // If z's precision is 0, it is changed to 64 (and rounding will have
    // no effect).
    func (z *Float) SetInt64(x int64) *Float {
    	u := x
    	if u < 0 {
    		u = -u
    	}
    	// We cannot simply call z.SetUint64(uint64(u)) and change
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/scalar.go

    	} else if w > 8 {
    		panic("NAF digits must fit in int8")
    	}
    
    	var naf [256]int8
    	var digits [5]uint64
    
    	for i := 0; i < 4; i++ {
    		digits[i] = byteorder.LeUint64(b[i*8:])
    	}
    
    	width := uint64(1 << w)
    	windowMask := uint64(width - 1)
    
    	pos := uint(0)
    	carry := uint64(0)
    	for pos < 256 {
    		indexU64 := pos / 64
    		indexBit := pos % 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/go/constant/value.go

    func newFloat() *big.Float { return new(big.Float).SetPrec(prec) }
    
    func i64toi(x int64Val) intVal   { return intVal{newInt().SetInt64(int64(x))} }
    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/pkiutil/pki_helpers.go

    	// returns a uniform random value in [0, max-1), then add 1 to serial to make it a uniform random value in [1, max).
    	serial, err := cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64-1))
    	if err != nil {
    		return nil, err
    	}
    	serial = new(big.Int).Add(serial, big.NewInt(1))
    	if len(cfg.CommonName) == 0 {
    		return nil, errors.New("must specify a CommonName")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top