Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for right (0.4 sec)

  1. src/cmd/compile/internal/walk/assign.go

    	init.Append(ir.TakeInit(n)...)
    
    	var left, right ir.Node
    	switch n.Op() {
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		left, right = n.X, n.Y
    	case ir.OASOP:
    		n := n.(*ir.AssignOpStmt)
    		left, right = n.X, n.Y
    	}
    
    	// Recognize m[k] = append(m[k], ...) so we can reuse
    	// the mapassign call.
    	var mapAppend *ir.CallExpr
    	if left.Op() == ir.OINDEXMAP && right.Op() == ir.OAPPEND {
    		left := left.(*ir.IndexExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/magic.go

    // (theorem ZRU in Hacker's Delight) for unsigned integers.
    //
    // x <= a and x ends in k zero bits if and only if RotRight(x ,k) <= ⎣a/(2^k)⎦
    // Where RotRight(x ,k) is right rotation of x by k bits.
    //
    // To prove the first direction, x <= a -> ⎣x/(2^k)⎦ <= ⎣a/(2^k)⎦
    // But since x ends in k zeroes all the rotated bits would be zero too.
    // So RotRight(x, k) == ⎣x/(2^k)⎦ <= ⎣a/(2^k)⎦
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func.go

    //
    // A method declaration is represented like functions, except f.Sym
    // will be the qualified method name (e.g., "T.m").
    //
    // A method expression (T.M) is represented as an OMETHEXPR node,
    // in which n.Left and n.Right point to the type and method, respectively.
    // Each distinct mention of a method expression in the source code
    // constructs a fresh node.
    //
    // A method value (t.M) is represented by ODOTMETH/ODOTINTER
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/staticinit/sched.go

    	//
    	//	func New(text string) error {
    	//		return &errorString{text}
    	//	}
    	//
    	// We could make things more sophisticated but this kind of initializer
    	// is the most important case for us to get right.
    
    	init := call.Init()
    	var as2init *ir.AssignListStmt
    	if len(init) == 2 && init[0].Op() == ir.OAS2 && init[1].Op() == ir.OINLMARK {
    		as2init = init[0].(*ir.AssignListStmt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typestring.go

    				// note for embedded types, type name is field name, and "string" etc are lower case hence unexported.
    				pkgAnnotate = true
    				w.pkgInfo = false // only tag once
    			}
    
    			// This doesn't do the right thing for embedded type
    			// aliases where we should print the alias name, not
    			// the aliased type (see go.dev/issue/44410).
    			if !f.embedded {
    				w.string(f.name)
    				w.byte(' ')
    			}
    			w.typ(f.typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    // then readFrom uses Seek to skip past holes defined in Header.SparseHoles,
    // assuming that skipped regions are all NULs.
    // This always reads the last byte to ensure r is the right size.
    //
    // TODO(dsnet): Re-export this when adding sparse file support.
    // See https://golang.org/issue/22735
    func (tw *Writer) readFrom(r io.Reader) (int64, error) {
    	if tw.err != nil {
    		return 0, tw.err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/abi.go

    	// definition ABI to C. That also means that we don't want to
    	// create ABI wrappers even if there's a linkname.
    	//
    	// TODO(austin): Maybe we want to create the ABI wrappers, but
    	// ensure the linker exports the right ABI definition under
    	// the unmangled name?
    	cgoExports := make(map[string][]*[]string)
    	for i, prag := range typecheck.Target.CgoPragmas {
    		switch prag[0] {
    		case "cgo_export_static", "cgo_export_dynamic":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/clean/clean.go

    			}
    		}
    	}
    
    	if cleanTestcache && !cleanCache {
    		// Instead of walking through the entire cache looking for test results,
    		// we write a file to the cache indicating that all test results from before
    		// right now are to be ignored.
    		dir, _ := cache.DefaultDir()
    		if dir != "off" {
    			f, err := lockedfile.Edit(filepath.Join(dir, "testexpire.txt"))
    			if err == nil {
    				now := time.Now().UnixNano()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/action.go

    	a := b.actionCache[cacheKey{mode, p}]
    	if a == nil {
    		a = f()
    		b.actionCache[cacheKey{mode, p}] = a
    	}
    	return a
    }
    
    // AutoAction returns the "right" action for go build or go install of p.
    func (b *Builder) AutoAction(mode, depMode BuildMode, p *load.Package) *Action {
    	if p.Name == "main" {
    		return b.LinkAction(mode, depMode, p)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/mvs/mvs.go

    				return nil, err
    			}
    			// If the target version is a pseudo-version, it may not be
    			// included when iterating over prior versions using reqs.Previous.
    			// Insert it into the right place in the iteration.
    			// If v is excluded, p should be returned again by reqs.Previous on the next iteration.
    			if v := max[r.Path]; reqs.Max(r.Path, v, r.Version) != v && reqs.Max(r.Path, p.Version, v) != p.Version {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top