Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 135 for _len (0.04 sec)

  1. src/go/types/builtins.go

    			check.recordBuiltinType(call.Fun, sig)
    		}
    
    	case _Cap, _Len:
    		// cap(x)
    		// len(x)
    		mode := invalid
    		var val constant.Value
    		switch t := arrayPtrDeref(under(x.typ)).(type) {
    		case *Basic:
    			if isString(t) && id == _Len {
    				if x.mode == constant_ {
    					mode = constant_
    					val = constant.MakeInt64(int64(len(constant.StringVal(x.val))))
    				} else {
    					mode = value
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/builtins.go

    			check.recordBuiltinType(call.Fun, sig)
    		}
    
    	case _Cap, _Len:
    		// cap(x)
    		// len(x)
    		mode := invalid
    		var val constant.Value
    		switch t := arrayPtrDeref(under(x.typ)).(type) {
    		case *Basic:
    			if isString(t) && id == _Len {
    				if x.mode == constant_ {
    					mode = constant_
    					val = constant.MakeInt64(int64(len(constant.StringVal(x.val))))
    				} else {
    					mode = value
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/universe.go

    	_Complex: {"complex", 2, false, expression},
    	_Copy:    {"copy", 2, false, statement},
    	_Delete:  {"delete", 2, false, statement},
    	_Imag:    {"imag", 1, false, expression},
    	_Len:     {"len", 1, false, expression},
    	_Make:    {"make", 1, true, expression},
    	// To disable max/min, remove the next two lines.
    	_Max:     {"max", 1, true, expression},
    	_Min:     {"min", 1, true, expression},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/go/types/universe.go

    	_Complex: {"complex", 2, false, expression},
    	_Copy:    {"copy", 2, false, statement},
    	_Delete:  {"delete", 2, false, statement},
    	_Imag:    {"imag", 1, false, expression},
    	_Len:     {"len", 1, false, expression},
    	_Make:    {"make", 1, true, expression},
    	// To disable max/min, remove the next two lines.
    	_Max:     {"max", 1, true, expression},
    	_Min:     {"min", 1, true, expression},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		return
    	}
    	if kind != 0 && kind != vk {
    		var inner bytes.Buffer
    		if len(v.inner) > 0 {
    			fmt.Fprintf(&inner, " containing")
    			for i, vi := range v.inner {
    				if i > 0 && len(v.inner) > 2 {
    					fmt.Fprintf(&inner, ",")
    				}
    				fmt.Fprintf(&inner, " ")
    				if i > 0 && i == len(v.inner)-1 {
    					fmt.Fprintf(&inner, "and ")
    				}
    				fmt.Fprintf(&inner, "%s+%d(FP)", vi.name, vi.off)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  6. src/internal/bytealg/compare_loong64.s

    TEXT ·Compare<ABIInternal>(SB),NOSPLIT,$0-56
    	// R4 = a_base
    	// R5 = a_len
    	// R6 = a_cap (unused)
    	// R7 = b_base (want in R6)
    	// R8 = b_len (want in R7)
    	// R9 = b_cap (unused)
    	MOVV	R7, R6
    	MOVV	R8, R7
    	JMP	cmpbody<>(SB)
    
    TEXT runtime·cmpstring<ABIInternal>(SB),NOSPLIT,$0-40
    	// R4 = a_base
    	// R5 = a_len
    	// R6 = b_base
    	// R7 = b_len
    	JMP	cmpbody<>(SB)
    
    // On entry:
    // R5 length of a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/syscall/netlink_linux.go

    func ParseNetlinkMessage(b []byte) ([]NetlinkMessage, error) {
    	var msgs []NetlinkMessage
    	for len(b) >= NLMSG_HDRLEN {
    		h, dbuf, dlen, err := netlinkMessageHeaderAndData(b)
    		if err != nil {
    			return nil, err
    		}
    		m := NetlinkMessage{Header: *h, Data: dbuf[:int(h.Len)-NLMSG_HDRLEN]}
    		msgs = append(msgs, m)
    		b = b[dlen:]
    	}
    	return msgs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/math/big/rat.go

    func mulDenom(z, x, y nat) nat {
    	switch {
    	case len(x) == 0 && len(y) == 0:
    		return z.setWord(1)
    	case len(x) == 0:
    		return z.set(y)
    	case len(y) == 0:
    		return z.set(x)
    	}
    	return z.mul(x, y)
    }
    
    // scaleDenom sets z to the product x*f.
    // If f == 0 (zero value of denominator), z is set to (a copy of) x.
    func (z *Int) scaleDenom(x *Int, f nat) {
    	if len(f) == 0 {
    		z.Set(x)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  9. src/internal/bytealg/compare_riscv64.s

    	// X10 = a_base
    	// X11 = a_len
    	// X12 = a_cap (unused)
    	// X13 = b_base (want in X12)
    	// X14 = b_len (want in X13)
    	// X15 = b_cap (unused)
    	MOV	X13, X12
    	MOV	X14, X13
    	JMP	compare<>(SB)
    
    TEXT runtime·cmpstring<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-40
    	// X10 = a_base
    	// X11 = a_len
    	// X12 = b_base
    	// X13 = b_len
    	JMP	compare<>(SB)
    
    // On entry:
    // X10 points to start of a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. src/internal/bytealg/index_amd64.s

    #include "textflag.h"
    
    TEXT ·Index(SB),NOSPLIT,$0-56
    	MOVQ a_base+0(FP), DI
    	MOVQ a_len+8(FP), DX
    	MOVQ b_base+24(FP), R8
    	MOVQ b_len+32(FP), AX
    	MOVQ DI, R10
    	LEAQ ret+48(FP), R11
    	JMP  indexbody<>(SB)
    
    TEXT ·IndexString(SB),NOSPLIT,$0-40
    	MOVQ a_base+0(FP), DI
    	MOVQ a_len+8(FP), DX
    	MOVQ b_base+16(FP), R8
    	MOVQ b_len+24(FP), AX
    	MOVQ DI, R10
    	LEAQ ret+32(FP), R11
    	JMP  indexbody<>(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:20:48 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top