Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for BeUint64 (0.43 sec)

  1. src/crypto/elliptic/elliptic_test.go

    			t.Error("basepoint is not on the curve")
    		}
    	})
    }
    
    func TestOffCurve(t *testing.T) {
    	t.Parallel()
    	testAllCurves(t, func(t *testing.T, curve Curve) {
    		x, y := new(big.Int).SetInt64(1), new(big.Int).SetInt64(1)
    		if curve.IsOnCurve(x, y) {
    			t.Errorf("point off curve is claimed to be on the curve")
    		}
    
    		byteLen := (curve.Params().BitSize + 7) / 8
    		b := make([]byte, 1+2*byteLen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/const.go

    	ConstPrec = 512
    )
    
    func BigFloat(v constant.Value) *big.Float {
    	f := new(big.Float)
    	f.SetPrec(ConstPrec)
    	switch u := constant.Val(v).(type) {
    	case int64:
    		f.SetInt64(u)
    	case *big.Int:
    		f.SetInt(u)
    	case *big.Float:
    		f.Set(u)
    	case *big.Rat:
    		f.SetRat(u)
    	default:
    		base.Fatalf("unexpected: %v", u)
    	}
    	return f
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/crypto/elliptic/params.go

    // 0) is not on the any of the curves handled here.
    func zForAffine(x, y *big.Int) *big.Int {
    	z := new(big.Int)
    	if x.Sign() != 0 || y.Sign() != 0 {
    		z.SetInt64(1)
    	}
    	return z
    }
    
    // affineFromJacobian reverses the Jacobian transform. See the comment at the
    // top of the file. If the point is ∞ it returns 0, 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. pilot/test/mock/config.go

    func CheckCacheEvents(store model.ConfigStore, cache model.ConfigStoreController, namespace string, n int, t *testing.T) {
    	n64 := int64(n)
    	stop := make(chan struct{})
    	defer close(stop)
    	added, deleted := atomic.NewInt64(0), atomic.NewInt64(0)
    	cache.RegisterEventHandler(mockGvk, func(_, _ config2.Config, ev model.Event) {
    		switch ev {
    		case model.EventAdd:
    			if deleted.Load() != 0 {
    				t.Errorf("Events are not serialized (add)")
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top