Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,907 for IsSwitch (0.18 sec)

  1. src/cmd/internal/bootstrap_test/reboot_test.go

    	"path/filepath"
    	"runtime"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestRepeatBootstrap(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test that rebuilds the entire toolchain")
    	}
    	switch runtime.GOOS {
    	case "android", "ios", "js", "wasip1":
    		t.Skipf("skipping because the toolchain does not have to bootstrap on GOOS=%s", runtime.GOOS)
    	}
    
    	realGoroot := testenv.GOROOT(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/arm64/asm7.go

    			return true
    		}
    
    	case C_NSAUTO:
    		switch b {
    		case C_NSAUTO_4, C_NSAUTO_8, C_NSAUTO_16:
    			return true
    		}
    
    	case C_NPAUTO_16:
    		switch b {
    		case C_NSAUTO_16:
    			return true
    		}
    
    	case C_NPAUTO:
    		switch b {
    		case C_NSAUTO_16, C_NSAUTO_8, C_NPAUTO_16:
    			return true
    		}
    
    	case C_NQAUTO_16:
    		switch b {
    		case C_NSAUTO_16, C_NPAUTO_16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/order.go

    	// Note that because walkSwitch will rewrite some of the
    	// switch into a binary search, this is not as easy as it looks.
    	// (If we ran that code here we could invoke order.stmt on
    	// the if-else chain instead.)
    	// For now just clean all the temporaries at the end.
    	// In practice that's fine.
    	case ir.OSWITCH:
    		n := n.(*ir.SwitchStmt)
    		if base.Debug.Libfuzzer != 0 && !hasDefaultCase(n) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Curr":
    			z.Curr, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Curr")
    				return
    			}
    		case "Avg":
    			z.Avg, err = dc.ReadFloat32()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/database/sql/driver/types.go

    var Bool boolType
    
    type boolType struct{}
    
    var _ ValueConverter = boolType{}
    
    func (boolType) String() string { return "Bool" }
    
    func (boolType) ConvertValue(src any) (Value, error) {
    	switch s := src.(type) {
    	case bool:
    		return s, nil
    	case string:
    		b, err := strconv.ParseBool(s)
    		if err != nil {
    			return nil, fmt.Errorf("sql/driver: couldn't convert %q into type bool", s)
    		}
    		return b, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/unique/clone.go

    // makeCloneSeq creates a cloneSeq for a type.
    func makeCloneSeq(typ *abi.Type) cloneSeq {
    	if typ == nil {
    		return cloneSeq{}
    	}
    	if typ.Kind() == abi.String {
    		return singleStringClone
    	}
    	var seq cloneSeq
    	switch typ.Kind() {
    	case abi.Struct:
    		buildStructCloneSeq(typ, &seq, 0)
    	case abi.Array:
    		buildArrayCloneSeq(typ, &seq, 0)
    	}
    	return seq
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:21 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/go/types/labels.go

    			}
    
    			// determine and validate target
    			name := s.Label.Name
    			switch s.Tok {
    			case token.BREAK:
    				// spec: "If there is a label, it must be that of an enclosing
    				// "for", "switch", or "select" statement, and that is the one
    				// whose execution terminates."
    				valid := false
    				if t := b.enclosingTarget(name); t != nil {
    					switch t.Stmt.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/cmd/link/internal/loong64/asm.go

    	//		symreloc   uint64  // The high 32-bit is the symbol, the low 32-bit is the relocation type.
    	//		addend     int64
    
    	elfsym := ld.ElfSymForReloc(ctxt, r.Xsym)
    	switch r.Type {
    	default:
    		return false
    	case objabi.R_ADDR, objabi.R_DWARFSECREF:
    		switch r.Size {
    		case 4:
    			out.Write64(uint64(sectoff))
    			out.Write64(uint64(elf.R_LARCH_32) | uint64(elfsym)<<32)
    			out.Write64(uint64(r.Xadd))
    		case 8:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. src/net/cgo_unix.go

    	for _, addr := range addrs {
    		hosts = append(hosts, addr.String())
    	}
    	return hosts, nil
    }
    
    func cgoLookupPort(ctx context.Context, network, service string) (port int, err error) {
    	var hints _C_struct_addrinfo
    	switch network {
    	case "ip": // no hints
    	case "tcp", "tcp4", "tcp6":
    		*_C_ai_socktype(&hints) = _C_SOCK_STREAM
    		*_C_ai_protocol(&hints) = _C_IPPROTO_TCP
    	case "udp", "udp4", "udp6":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/loopclosure.go

    // a switch statement, then each switch case is also visited to examine
    // its last statements.
    func forEachLastStmt(stmts []ast.Stmt, onLast func(last ast.Stmt)) {
    	if len(stmts) == 0 {
    		return
    	}
    
    	s := stmts[len(stmts)-1]
    	switch s := s.(type) {
    	case *ast.IfStmt:
    	loop:
    		for {
    			forEachLastStmt(s.Body.List, onLast)
    			switch e := s.Else.(type) {
    			case *ast.BlockStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top