Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for intSize (0.11 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		cc = append(cc, newComponent(suffix+"_len", asmKind(arch.intSize), "slice len", off+arch.ptrSize, arch.intSize, suffix))
    		cc = append(cc, newComponent(suffix+"_cap", asmKind(arch.intSize), "slice cap", off+arch.ptrSize+arch.intSize, arch.intSize, suffix))
    
    	case asmString:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. cmd/local-locker_gen.go

    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z lockStats) Msgsize() (s int) {
    	s = 1 + 6 + msgp.IntSize + 7 + msgp.IntSize + 6 + msgp.IntSize
    	return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/strconv/atoi_test.go

    			t.Errorf("ParseInt(%q, %v, 64) = %v, %v want %v, %v",
    				test.in, test.base, out, err, test.out, test.err)
    		}
    	}
    }
    
    func TestParseUint(t *testing.T) {
    	switch IntSize {
    	case 32:
    		for i := range parseUint32Tests {
    			test := &parseUint32Tests[i]
    			out, err := ParseUint(test.in, 10, 0)
    			if uint64(test.out) != out || !reflect.DeepEqual(test.err, err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. cmd/metacache-set_gen.go

    	return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 19 20:23:12 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1_gen.go

    func (z *ErasureInfo) Msgsize() (s int) {
    	s = 1 + 10 + msgp.StringPrefixSize + len(z.Algorithm) + 11 + msgp.IntSize + 13 + msgp.IntSize + 10 + msgp.Int64Size + 6 + msgp.IntSize + 13 + msgp.ArrayHeaderSize + (len(z.Distribution) * (msgp.IntSize)) + 10 + msgp.ArrayHeaderSize
    	for za0002 := range z.Checksums {
    		s += z.Checksums[za0002].Msgsize()
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  6. internal/config/cache/remote_gen.go

    	if z.Metadata != nil {
    		for za0001, za0002 := range z.Metadata {
    			_ = za0002
    			s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  7. cmd/batch-handlers_gen.go

    func (z *batchJobInfo) Msgsize() (s int) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. test/newinline.go

    		panic("Numbers")
    	default:
    		return "oh nose!"
    	}
    }
    func switchConst4() { // ERROR "can inline switchConst4"
    	const intSize = 32 << (^uint(0) >> 63)
    	want := func() string { // ERROR "can inline switchConst4.func1"
    		switch intSize {
    		case 32:
    			return "32"
    		case 64:
    			return "64"
    		default:
    			panic("unreachable")
    		}
    	}() // ERROR "inlining call to switchConst4.func1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. test/inline.go

    		panic("Numbers")
    	default:
    		return "oh nose!"
    	}
    }
    func switchConst4() { // ERROR "can inline switchConst4"
    	const intSize = 32 << (^uint(0) >> 63)
    	want := func() string { // ERROR "can inline switchConst4.func1"
    		switch intSize {
    		case 32:
    			return "32"
    		case 64:
    			return "64"
    		default:
    			panic("unreachable")
    		}
    	}() // ERROR "inlining call to switchConst4.func1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  10. src/runtime/string_test.go

    	b := ([]byte)(s)
    	if !isZeroed(b[len(b):cap(b)]) {
    		t.Errorf("extra bytes not zeroed")
    	}
    	r := ([]rune)(s)
    	if !isZeroedR(r[len(r):cap(r)]) {
    		t.Errorf("extra runes not zeroed")
    	}
    }
    
    const intSize = 32 << (^uint(0) >> 63)
    
    type atoi64Test struct {
    	in  string
    	out int64
    	ok  bool
    }
    
    var atoi64tests = []atoi64Test{
    	{"", 0, false},
    	{"0", 0, true},
    	{"-0", 0, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
Back to top