Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 491 for size2 (0.04 sec)

  1. src/crypto/dsa/dsa_test.go

    	}
    }
    
    func testParameterGeneration(t *testing.T, sizes ParameterSizes, L, N int) {
    	var priv PrivateKey
    	params := &priv.Parameters
    
    	err := GenerateParameters(params, rand.Reader, sizes)
    	if err != nil {
    		t.Errorf("%d: %s", int(sizes), err)
    		return
    	}
    
    	if params.P.BitLen() != L {
    		t.Errorf("%d: params.BitLen got:%d want:%d", int(sizes), params.P.BitLen(), L)
    	}
    
    	if params.Q.BitLen() != N {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 15 21:04:43 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  2. src/runtime/unsafe.go

    func unsafeslice(et *_type, ptr unsafe.Pointer, len int) {
    	if len < 0 {
    		panicunsafeslicelen1(getcallerpc())
    	}
    
    	if et.Size_ == 0 {
    		if ptr == nil && len > 0 {
    			panicunsafeslicenilptr1(getcallerpc())
    		}
    	}
    
    	mem, overflow := math.MulUintptr(et.Size_, uintptr(len))
    	if overflow || mem > -uintptr(ptr) {
    		if ptr == nil {
    			panicunsafeslicenilptr1(getcallerpc())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/encoding/xml/example_text_marshaling_test.go

    	}
    	return []byte(name), nil
    }
    
    func Example_textMarshalXML() {
    	blob := `
    	<sizes>
    		<size>small</size>
    		<size>regular</size>
    		<size>large</size>
    		<size>unrecognized</size>
    		<size>small</size>
    		<size>normal</size>
    		<size>small</size>
    		<size>large</size>
    	</sizes>`
    	var inventory struct {
    		Sizes []Size `xml:"size"`
    	}
    	if err := xml.Unmarshal([]byte(blob), &inventory); err != nil {
    		log.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 14:18:06 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  4. src/compress/flate/writer_test.go

    	w, err := NewWriter(&b1, i)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Use a very small prime sized buffer.
    	cbuf := make([]byte, 787)
    	_, err = io.CopyBuffer(w, struct{ io.Reader }{br}, cbuf)
    	if err != nil {
    		t.Fatal(err)
    	}
    	w.Close()
    
    	// We choose a different buffer size,
    	// bigger than a maximum block, and also a prime.
    	var b2 bytes.Buffer
    	cbuf = make([]byte, 81761)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

            private final List<Long> sizes;
    
            private final List<String> ids;
    
            private final int hashCode;
    
            public CacheKey(List<Artifact> extensionArtifacts) {
                this.files = new ArrayList<>(extensionArtifacts.size());
                this.timestamps = new ArrayList<>(extensionArtifacts.size());
                this.sizes = new ArrayList<>(extensionArtifacts.size());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  6. cmd/data-usage-cache_test.go

    )
    
    func TestSizeHistogramToMap(t *testing.T) {
    	tests := []struct {
    		sizes []int64
    		want  map[string]uint64
    	}{
    		{
    			sizes: []int64{100, 1000, 72_000, 100_000},
    			want: map[string]uint64{
    				"LESS_THAN_1024_B":         2,
    				"BETWEEN_64_KB_AND_256_KB": 2,
    				"BETWEEN_1024B_AND_1_MB":   2,
    			},
    		},
    		{
    			sizes: []int64{100, 1000, 2000, 100_000, 13 * humanize.MiByte},
    			want: map[string]uint64{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jan 13 07:51:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    	}
    
    	if f.Options.EnableWatchCache {
    		sizes, err := ParseWatchCacheSizes(f.Options.WatchCacheSizes)
    		if err != nil {
    			return generic.RESTOptions{}, err
    		}
    		size, ok := sizes[resource]
    		if ok && size > 0 {
    			klog.Warningf("Dropping watch-cache-size for %v - watchCache size is now dynamic", resource)
    		}
    		if ok && size <= 0 {
    			klog.V(3).InfoS("Not using watch cache", "resource", resource)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. pkg/ctrlz/assets/static/manifest.json

    {
        "name": "Istio Controlz",
        "short_name": "Controlz",
        "icons": [
            {
                "src": "favicons/pwa-192x192.png",
                "sizes": "192x192",
                "type": "image/png"
            },
    
            {
                "src": "favicons/pwa-512x512.png",
                "sizes": "512x512",
                "type": "image/png"
            }
        ],
        "theme_color": "#466BB0",
        "background_color": "#ffffff",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 442 bytes
    - Viewed (0)
  9. src/math/big/rat.go

    	if alen == 0 {
    		return 0, true
    	}
    	blen := b.bitLen()
    	if blen == 0 {
    		panic("division by zero")
    	}
    
    	// 1. Left-shift A or B such that quotient A/B is in [1<<Msize1, 1<<(Msize2+1)
    	// (Msize2 bits if A < B when they are left-aligned, Msize2+1 bits if A >= B).
    	// This is 2 or 3 more than the float32 mantissa field width of Msize:
    	// - the optional extra bit is shifted away in step 3 below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/builtins.go

    			return
    		}
    
    		types := []Type{T}
    		var sizes []int64 // constant integer arguments, if any
    		for _, arg := range argList[1:] {
    			typ, size := check.index(arg, -1) // ok to continue with typ == Typ[Invalid]
    			types = append(types, typ)
    			if size >= 0 {
    				sizes = append(sizes, size)
    			}
    		}
    		if len(sizes) == 2 && sizes[0] > sizes[1] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top