Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for equalTo (0.08 sec)

  1. src/cmd/trace/pprof.go

    	// it is insufficient for deduplication because trace.Stack
    	// equality is only optimistic. If two trace.Stacks are equal,
    	// then they are guaranteed to be equal in content. If they are
    	// not equal, then they might still be equal in content.
    	stacks map[trace.Stack]*traceviewer.ProfileRecord
    
    	// pcs is the source-of-truth for deduplication. It is a map of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/unify.go

    			xset := xi.typeSet()
    			yset := yi.typeSet()
    			if xset.comparable != yset.comparable {
    				return false
    			}
    			// For now we require terms to be equal.
    			// We should be able to relax this as well, eventually.
    			if !xset.terms.equal(yset.terms) {
    				return false
    			}
    			// Interface types are the only types where cycles can occur
    			// that are not "terminated" via named types; and such cycles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/poset.go

    	return i1 == i2 || po.reaches(i1, i2, false)
    }
    
    // Equal reports whether n1==n2. It returns false either when it is
    // certain that n1==n2 is false, or if there is not enough information
    // to tell.
    // Complexity is O(1).
    func (po *poset) Equal(n1, n2 *Value) bool {
    	if debugPoset {
    		defer po.CheckIntegrity()
    	}
    	if n1.ID == n2.ID {
    		panic("should not call Equal with n1==n2")
    	}
    
    	i1, f1 := po.lookup(n1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  4. src/cmd/internal/test2json/test2json.go

    	if bytes.Equal(trim, emptyName) {
    		line = emptyNameLine
    		trim = line[:len(line)-1]
    	}
    
    	// Final PASS or FAIL.
    	if bytes.Equal(trim, bigPass) || bytes.Equal(trim, bigFail) || bytes.HasPrefix(trim, bigFailErrorPrefix) {
    		c.flushReport(0)
    		c.testName = ""
    		c.needMarker = sawMarker
    		c.output.write(line)
    		if bytes.Equal(trim, bigPass) {
    			c.result = "pass"
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/sccp.go

    	constCnt, rewireCnt := t.replaceConst()
    	if f.pass.debug > 0 {
    		if constCnt > 0 || rewireCnt > 0 {
    			fmt.Printf("Phase SCCP for %v : %v constants, %v dce\n", f.Name, constCnt, rewireCnt)
    		}
    	}
    }
    
    func equals(a, b lattice) bool {
    	if a == b {
    		// fast path
    		return true
    	}
    	if a.tag != b.tag {
    		return false
    	}
    	if a.tag == constant {
    		// The same content of const value may be different, we should
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/predicates.go

    			// consider passing a type set map.
    			unionSets := make(map[*Union]*_TypeSet)
    			xset := computeUnionTypeSet(nil, unionSets, nopos, x)
    			yset := computeUnionTypeSet(nil, unionSets, nopos, y)
    			return xset.terms.equal(yset.terms)
    		}
    
    	case *Interface:
    		// Two interface types are identical if they describe the same type sets.
    		// With the existing implementation restriction, this simplifies to:
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. src/bytes/buffer_test.go

    			if allocs != 0 {
    				t.Errorf("allocation occurred during write")
    			}
    			// Check that buffer has correct data.
    			if !Equal(buf.Bytes()[0:startLen-readBytes], xBytes[readBytes:]) {
    				t.Errorf("bad initial data at %d %d", startLen, growLen)
    			}
    			if !Equal(buf.Bytes()[startLen-readBytes:startLen-readBytes+growLen], yBytes) {
    				t.Errorf("bad written data at %d %d", startLen, growLen)
    			}
    		}
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. src/cmd/go/script_test.go

    		t.Logf("%s", log)
    	}
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	newGomodData, err := os.ReadFile(s.Path("go.mod"))
    	if err != nil {
    		t.Fatalf("reading go.mod after -testsum: %v", err)
    	}
    	if !bytes.Equal(newGomodData, archive.Files[gomodIdx].Data) {
    		archive.Files[gomodIdx].Data = newGomodData
    		rewrite = true
    	}
    
    	newGosumData, err := os.ReadFile(s.Path("go.sum"))
    	if err != nil && !os.IsNotExist(err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/lookup.go

    	// Used to avoid endless searches in case of recursive types.
    	//
    	// We must use a lookup on identity rather than a simple map[*Named]bool as
    	// instantiated types may be identical but not equal.
    	var seen instanceLookup
    
    	// search current depth
    	for len(current) > 0 {
    		var next []embeddedType // embedded types found at current depth
    
    		// look for (pkg, name) in all types at current depth
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/gnu.go

    		// BI fields rename as follows:
    		// less than            : lt BI%4==0 && test == t
    		// less than or equal   : le BI%4==1 && test == f
    		// equal 		: eq BI%4==2 && test == t
    		// greater than or equal: ge BI%4==0 && test == f
    		// greater than		: gt BI%4==1 && test == t
    		// not less than	: nl BI%4==0 && test == f
    		// not equal		: ne BI%4==2 && test == f
    		// not greater than	: ng BI%4==1 && test == f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.2K bytes
    - Viewed (0)
Back to top