Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for typehash (0.07 sec)

  1. src/cmd/compile/internal/ssa/rewrite.go

    		}
    	}
    	return false
    }
    func fixed32(c *Config, sym Sym, off int64) int32 {
    	lsym := sym.(*obj.LSym)
    	if ti, ok := (*lsym.Extra).(*obj.TypeInfo); ok {
    		if off == 2*c.PtrSize {
    			return int32(types.TypeHash(ti.Type.(*types.Type)))
    		}
    	}
    	base.Fatalf("fixed32 data not known for %s:%d", sym, off)
    	return 0
    }
    
    // isFixedSym returns true if the contents of sym at the given offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  2. src/reflect/type.go

    	mt.Key = ktyp
    	mt.Elem = etyp
    	mt.Bucket = bucketOf(ktyp, etyp)
    	mt.Hasher = func(p unsafe.Pointer, seed uintptr) uintptr {
    		return typehash(ktyp, p, seed)
    	}
    	mt.Flags = 0
    	if ktyp.Size_ > abi.MapMaxKeyBytes {
    		mt.KeySize = uint8(goarch.PtrSize)
    		mt.Flags |= 1 // indirect key
    	} else {
    		mt.KeySize = uint8(ktyp.Size_)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  3. src/runtime/map.go

    				// bit of tophash to decide which way NaNs go.
    				// NOTE: this case is why we need two evacuate tophash
    				// values, evacuatedX and evacuatedY, that differ in
    				// their low bit.
    				if checkBucket>>(it.B-1) != uintptr(b.tophash[offi]&1) {
    					continue
    				}
    			}
    		}
    		if (b.tophash[offi] != evacuatedX && b.tophash[offi] != evacuatedY) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top