Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for generic (0.41 sec)

  1. src/bytes/bytes.go

    					return i
    				}
    				continue
    			}
    		}
    		for _, ch := range chars {
    			if r == ch {
    				return i
    			}
    		}
    	}
    	return -1
    }
    
    // Generic split: splits after each instance of sep,
    // including sepSave bytes of sep in the subslices.
    func genSplit(s, sep []byte, sepSave, n int) [][]byte {
    	if n == 0 {
    		return nil
    	}
    	if len(sep) == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/expr_test.go

    	{"3-4", 3 - 4, true},
    	{"2|5", 2 | 5, true},
    	{"3^4", 3 ^ 4, true},
    	{"3*4", 3 * 4, true},
    	{"14/4", 14 / 4, true},
    	{"3<<4", 3 << 4, true},
    	{"48>>3", 48 >> 3, true},
    	{"3&9", 3 & 9, true},
    	// General
    	{"3*2+3", 3*2 + 3, true},
    	{"3+2*3", 3 + 2*3, true},
    	{"3*(2+3)", 3 * (2 + 3), true},
    	{"3*-(2+3)", 3 * -(2 + 3), true},
    	{"3<<2+4", 3<<2 + 4, true},
    	{"3<<2+4", 3<<2 + 4, true},
    	{"3<<(2+4)", 3 << (2 + 4), true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/parse.go

    		return int8(s[0] - '0')
    	}
    	p.errorf("bad scale: %s", s)
    	return 0
    }
    
    // operand parses a general operand and stores the result in *a.
    func (p *Parser) operand(a *obj.Addr) {
    	//fmt.Printf("Operand: %v\n", p.input)
    	if len(p.input) == 0 {
    		p.errorf("empty operand: cannot happen")
    		return
    	}
    	// General address (with a few exceptions) looks like
    	//	$sym±offset(SB)(reg)(index*scale)
    	// Exceptions are:
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    see https://golang.org/pkg/go/build/#hdr-Build_Constraints).
    
    When cross-compiling, you must specify a C cross-compiler for cgo to
    use. You can do this by setting the generic CC_FOR_TARGET or the
    more specific CC_FOR_${GOOS}_${GOARCH} (for example, CC_FOR_linux_arm)
    environment variable when building the toolchain using make.bash,
    or you can set the CC environment variable any time you run the go tool.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    			expr = &ast.CallExpr{
    				Fun:  &ast.Ident{NamePos: (*r.Expr).Pos(), Name: "_Cgo_ptr"},
    				Args: []ast.Expr{getNewIdent(name.Mangle)},
    			}
    		case "type":
    			// Okay - might be new(T), T(x), Generic[T], etc.
    			if r.Name.Type == nil {
    				error_(r.Pos(), "expression C.%s: undefined C type '%s'", fixGo(r.Name.Go), r.Name.C)
    			}
    		case "var":
    			expr = &ast.StarExpr{Star: (*r.Expr).Pos(), X: expr}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/asm.go

    // DATA masks<>+0x00(SB)/4, $0x00000000
    func (p *Parser) asmData(operands [][]lex.Token) {
    	if len(operands) != 2 {
    		p.errorf("expect two operands for DATA")
    		return
    	}
    
    	// Operand 0 has the general form foo<>+0x04(SB)/4.
    	op := operands[0]
    	n := len(op)
    	if n < 3 || op[n-2].ScanToken != '/' || op[n-1].ScanToken != scanner.Int {
    		p.errorf("expect /size for DATA argument")
    		return
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    		lineno++
    
    		// Ignore include of textflag.h.
    		if strings.HasPrefix(line, "#include ") {
    			continue
    		}
    
    		// Ignore GLOBL.
    		if strings.HasPrefix(line, "GLOBL ") {
    			continue
    		}
    
    		// The general form of a test input line is:
    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/cmd/api/main_test.go

    // to avoid misleading negative results.
    // This makes all the references to os.FileInfo in go1.txt
    // be read as if they said fs.FileInfo, since os.FileInfo is now an alias.
    // If there are many of these, we could do a more general solution,
    // but for now the replacer is fine.
    var aliasReplacer = strings.NewReplacer(
    	"os.FileInfo", "fs.FileInfo",
    	"os.FileMode", "fs.FileMode",
    	"os.PathError", "fs.PathError",
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top