- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AlgType (0.45 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) -
test/fixedbugs/issue8507.go
// errorcheck // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // issue 8507 // used to call algtype on invalid recursive type and get into infinite recursion package p type T struct{ T } // ERROR "invalid recursive type.*T" func f() { println(T{} == T{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 14:21:33 UTC 2022 - 374 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)