Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 394 for setTypes (0.25 sec)

  1. src/math/big/arith_test.go

    			b.SetBytes(int64(n * _W))
    			for i := 0; i < b.N; i++ {
    				addVV(z, x, y)
    			}
    		})
    	}
    }
    
    func BenchmarkSubVV(b *testing.B) {
    	for _, n := range benchSizes {
    		if isRaceBuilder && n > 1e3 {
    			continue
    		}
    		x := rndV(n)
    		y := rndV(n)
    		z := make([]Word, n)
    		b.Run(fmt.Sprint(n), func(b *testing.B) {
    			b.SetBytes(int64(n * _W))
    			for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256.go

    }
    
    // SetGenerator sets p to the canonical generator and returns p.
    func (p *P256Point) SetGenerator() *P256Point {
    	p.x.SetBytes([]byte{0x6b, 0x17, 0xd1, 0xf2, 0xe1, 0x2c, 0x42, 0x47, 0xf8, 0xbc, 0xe6, 0xe5, 0x63, 0xa4, 0x40, 0xf2, 0x77, 0x3, 0x7d, 0x81, 0x2d, 0xeb, 0x33, 0xa0, 0xf4, 0xa1, 0x39, 0x45, 0xd8, 0x98, 0xc2, 0x96})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    // list and reorder them if needed.
    //
    // It sets DefaultSampleType to sType[0] if it is not in sType list.
    //
    // It assumes that all sample types from the sTypes list are present in the
    // given profile otherwise it returns an error.
    func compatibilizeSampleTypes(p *Profile, sTypes []string) error {
    	if len(sTypes) == 0 {
    		return fmt.Errorf("sample type list is empty")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. src/crypto/rand/util.go

    			bytes[0] |= 1
    			if len(bytes) > 1 {
    				bytes[1] |= 0x80
    			}
    		}
    		// Make the value odd since an even number this large certainly isn't prime.
    		bytes[len(bytes)-1] |= 1
    
    		p.SetBytes(bytes)
    		if p.ProbablyPrime(20) {
    			return p, nil
    		}
    	}
    }
    
    // Int returns a uniform random value in [0, max). It panics if max <= 0.
    func Int(rand io.Reader, max *big.Int) (n *big.Int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/math/big/ratmarsh.go

    		return errors.New("Rat.GobDecode: invalid length")
    	}
    	i := j + int(ln)
    	if len(buf) < i {
    		return errors.New("Rat.GobDecode: buffer too small")
    	}
    	z.a.neg = b&1 != 0
    	z.a.abs = z.a.abs.setBytes(buf[j:i])
    	z.b.abs = z.b.abs.setBytes(buf[i:])
    	return nil
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    func (x *Rat) MarshalText() (text []byte, err error) {
    	if x.IsInt() {
    		return x.a.MarshalText()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/hash/maphash/maphash_test.go

    	b.Run("Write", func(b *testing.B) {
    		b.SetBytes(int64(size))
    		for i := 0; i < b.N; i++ {
    			h.Reset()
    			h.Write(buf)
    			h.Sum64()
    		}
    	})
    
    	b.Run("Bytes", func(b *testing.B) {
    		b.SetBytes(int64(size))
    		seed := h.Seed()
    		for i := 0; i < b.N; i++ {
    			Bytes(seed, buf)
    		}
    	})
    
    	b.Run("String", func(b *testing.B) {
    		b.SetBytes(int64(size))
    		seed := h.Seed()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. cmd/xl-storage-format_test.go

    				b.Fatal(err)
    			}
    			b.Logf("Serialized size: %d bytes", len(enc))
    			rng := rand.New(rand.NewSource(0))
    			dump := make([]byte, len(enc))
    			b.Run("UpdateObjectVersion", func(b *testing.B) {
    				b.SetBytes(int64(size))
    				b.ResetTimer()
    				b.ReportAllocs()
    				for i := 0; i < b.N; i++ {
    					// Load...
    					xl = xlMetaV2{}
    					err := xl.Load(enc)
    					if err != nil {
    						b.Fatal(err)
    					}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/generate.go

    	{{ .Prefix }}InvertEndianness(out[:])
    	return out[:]
    }
    
    // SetBytes sets e = v, where v is a big-endian {{ .BytesLen }}-byte encoding, and returns e.
    // If v is not {{ .BytesLen }} bytes or it encodes a value higher than {{ .Prime }},
    // SetBytes returns nil and an error, and e is unchanged.
    func (e *{{ .Element }}) SetBytes(v []byte) (*{{ .Element }}, error) {
    	if len(v) != {{ .Prefix }}ElementLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/p224.go

    	}
    }
    
    // SetGenerator sets p to the canonical generator and returns p.
    func (p *P224Point) SetGenerator() *P224Point {
    	p.x.SetBytes([]byte{0xb7, 0xe, 0xc, 0xbd, 0x6b, 0xb4, 0xbf, 0x7f, 0x32, 0x13, 0x90, 0xb9, 0x4a, 0x3, 0xc1, 0xd3, 0x56, 0xc2, 0x11, 0x22, 0x34, 0x32, 0x80, 0xd6, 0x11, 0x5c, 0x1d, 0x21})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/p521.go

    	p.x.Set(q.x)
    	p.y.Set(q.y)
    	p.z.Set(q.z)
    	return p
    }
    
    // SetBytes sets p to the compressed, uncompressed, or infinity value encoded in
    // b, as specified in SEC 1, Version 2.0, Section 2.3.4. If the point is not on
    // the curve, it returns nil and an error, and the receiver is unchanged.
    // Otherwise, it returns p.
    func (p *P521Point) SetBytes(b []byte) (*P521Point, error) {
    	switch {
    	// Point at infinity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 17K bytes
    - Viewed (0)
Back to top