- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AlgType (0.09 sec)
-
src/cmd/compile/internal/types/alg.go
} } // AlgType returns the AlgKind used for comparing and hashing Type t. func AlgType(t *Type) AlgKind { CalcSize(t) return t.alg } // TypeHasNoAlg reports whether t does not have any associated hash/eq // algorithms because t, or some component of t, is marked Noalg. func TypeHasNoAlg(t *Type) bool { return AlgType(t) == ANOALG }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 15:30:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/walk.go
var mapassign = mkmapnames("mapassign", "ptr") var mapdelete = mkmapnames("mapdelete", "") func mapfast(t *types.Type) int { if t.Elem().Size() > abi.MapMaxElemBytes { return mapslow } switch reflectdata.AlgType(t.Key()) { case types.AMEM32: if !t.Key().HasPointers() { return mapfast32 } if types.PtrSize == 4 { return mapfast32ptr } base.Fatalf("small pointer %v", t.Key()) case types.AMEM64:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 20:56:00 UTC 2024 - 10.4K bytes - Viewed (0)