Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for intSize (0.51 sec)

  1. src/strconv/atoi.go

    func bitSizeError(fn, str string, bitSize int) *NumError {
    	return &NumError{fn, stringslite.Clone(str), errors.New("invalid bit size " + Itoa(bitSize))}
    }
    
    const intSize = 32 << (^uint(0) >> 63)
    
    // IntSize is the size in bits of an int or uint value.
    const IntSize = intSize
    
    const maxUint64 = 1<<64 - 1
    
    // ParseUint is like [ParseInt] but for unsigned numbers.
    //
    // A sign prefix is not permitted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. 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)
  3. cmd/object-api-datatypes_gen.go

    	s = 1 + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Object) + 9 + msgp.StringPrefixSize + len(z.UploadID) + 13 + msgp.StringPrefixSize + len(z.StorageClass) + 17 + msgp.IntSize + 21 + msgp.IntSize + 9 + msgp.IntSize + 12 + msgp.BoolSize + 6 + msgp.ArrayHeaderSize
    	for za0001 := range z.Parts {
    		s += z.Parts[za0001].Msgsize()
    	}
    	s += 12 + msgp.MapHeaderSize
    	if z.UserDefined != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  4. 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)
  5. src/go/internal/gcimporter/iimport.go

    		im := r.mpfloat(b)
    		val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    
    	default:
    		errorf("unexpected type %v", typ) // panics
    		panic("unreachable")
    	}
    
    	return
    }
    
    func intSize(b *types.Basic) (signed bool, maxBytes uint) {
    	if (b.Info() & types.IsUntyped) != 0 {
    		return true, 64
    	}
    
    	switch b.Kind() {
    	case types.Float32, types.Complex64:
    		return true, 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_gen.go

    	for za0005 := range z.PartETags {
    		s += msgp.StringPrefixSize + len(z.PartETags[za0005])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    // The same dwarf.StructType pointer will always get the same tag.
    var anonymousStructTag = make(map[*dwarf.StructType]string)
    
    func (c *typeConv) Init(ptrSize, intSize int64) {
    	c.ptrSize = ptrSize
    	c.intSize = intSize
    	c.m = make(map[string]*Type)
    	c.ptrs = make(map[string][]*Type)
    	c.getTypeIDs = make(map[string]bool)
    	c.incompleteStructs = make(map[string]bool)
    	c.bool = c.Ident("bool")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. src/encoding/base32/base32_test.go

    		{rawStdEncoding, 4, 7},
    		{rawStdEncoding, 5, 8},
    		{rawStdEncoding, 6, 10},
    		{rawStdEncoding, 7, 12},
    		{rawStdEncoding, 10, 16},
    		{rawStdEncoding, 11, 18},
    	}
    	// check overflow
    	switch strconv.IntSize {
    	case 32:
    		tests = append(tests, test{rawStdEncoding, (math.MaxInt-4)/8 + 1, 429496730})
    		tests = append(tests, test{rawStdEncoding, math.MaxInt/8*5 + 4, math.MaxInt})
    	case 64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  9. src/flag/flag_test.go

    	if got != defaultOutput {
    		t.Errorf("got:\n%q\nwant:\n%q", got, defaultOutput)
    	}
    }
    
    // Issue 19230: validate range of Int and Uint flag values.
    func TestIntFlagOverflow(t *testing.T) {
    	if strconv.IntSize != 32 {
    		return
    	}
    	ResetForTesting(nil)
    	Int("i", 0, "")
    	Uint("u", 0, "")
    	if err := Set("i", "2147483648"); err == nil {
    		t.Error("unexpected success setting Int")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  10. src/flag/flag.go

    // -- int Value
    type intValue int
    
    func newIntValue(val int, p *int) *intValue {
    	*p = val
    	return (*intValue)(p)
    }
    
    func (i *intValue) Set(s string) error {
    	v, err := strconv.ParseInt(s, 0, strconv.IntSize)
    	if err != nil {
    		err = numError(err)
    	}
    	*i = intValue(v)
    	return err
    }
    
    func (i *intValue) Get() any { return int(*i) }
    
    func (i *intValue) String() string { return strconv.Itoa(int(*i)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
Back to top