- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for OnesCount64 (0.23 sec)
-
pkg/kubelet/cm/topologymanager/bitmask/bitmask.go
} } return fmt.Sprintf("%0"+strconv.Itoa(grouping)+"b", *s) } // Count counts number of bits in mask set to one func (s *bitMask) Count() int { return bits.OnesCount64(uint64(*s)) } // Getbits returns each bit number with bits set to one func (s *bitMask) GetBits() []int { var bits []int for i := uint64(0); i < 64; i++ { if (*s & (1 << i)) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:09 UTC 2022 - 5.1K bytes - Viewed (0) -
test/codegen/mathbits.go
// ppc64x:"POPCNTD" // wasm:"I64Popcnt" return bits.OnesCount(n) } func OnesCount64(n uint64) int { // amd64/v2:-".*x86HasPOPCNT" amd64/v3:-".*x86HasPOPCNT" // amd64:"POPCNTQ" // arm64:"VCNT","VUADDLV" // s390x:"POPCNT" // ppc64x:"POPCNTD" // wasm:"I64Popcnt" return bits.OnesCount64(n) } func OnesCount32(n uint32) int { // amd64/v2:-".*x86HasPOPCNT" amd64/v3:-".*x86HasPOPCNT"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:51:17 UTC 2024 - 19.6K bytes - Viewed (0) -
api/go1.9.txt
pkg math/bits, func Len64(uint64) int pkg math/bits, func Len8(uint8) int pkg math/bits, func OnesCount(uint) int pkg math/bits, func OnesCount16(uint16) int pkg math/bits, func OnesCount32(uint32) int pkg math/bits, func OnesCount64(uint64) int pkg math/bits, func OnesCount8(uint8) int pkg math/bits, func Reverse(uint) uint pkg math/bits, func Reverse16(uint16) uint16 pkg math/bits, func Reverse32(uint32) uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 04 20:20:20 UTC 2021 - 10.7K bytes - Viewed (0) -
src/math/bits/bits_test.go
got = OnesCount(uint(x)) if got != want { t.Fatalf("OnesCount(%#08x) == %d; want %d", uint32(x), got, want) } } } if x <= 1<<64-1 { got := OnesCount64(uint64(x)) if got != want { t.Fatalf("OnesCount64(%#016x) == %d; want %d", x, got, want) } if UintSize == 64 { got = OnesCount(uint(x)) if got != want { t.Fatalf("OnesCount(%#016x) == %d; want %d", x, got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 22 20:11:06 UTC 2020 - 32.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/main.go
s := a.name if s == "generic" { s = "" } return s } // countRegs returns the number of set bits in the register mask. func countRegs(r regMask) int { return bits.OnesCount64(uint64(r)) } // for sorting a pair of integers by key type intPair struct { key, val int } type byKey []intPair func (a byKey) Len() int { return len(a) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:42:34 UTC 2023 - 16.9K bytes - Viewed (0) -
src/runtime/gc_test.go
// This is a serious bug - an object is live (due to the KeepAlive // call below), but isn't reported as such. t.Fatalf("live object not in reachable set; want %b, got %b", want, got) } if bits.OnesCount64(got&^want) > 1 { // Note: we can occasionally have a value that is retained even though // it isn't live, due to conservative scanning of stack frames. // See issue 67204. For now, we allow a "slop" of 1 unintentionally
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
src/runtime/export_test.go
if chunk == nil { continue } pg := chunk.scavenged.popcntRange(0, pallocChunkPages) slow.HeapReleased += uint64(pg) * pageSize } for _, p := range allp { pg := sys.OnesCount64(p.pcache.scav) slow.HeapReleased += uint64(pg) * pageSize } getg().m.mallocing-- }) startTheWorld(stw) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/runtime/mbitmap.go
// but that's OK. We only care about how many bits are 1, not // about the order we discover them in. mrkBits := *(*uint64)(unsafe.Pointer(s.gcmarkBits.bytep(i))) count += sys.OnesCount64(mrkBits) } return count } // Read the bytes starting at the aligned pointer p into a uintptr. // Read is little-endian. func readUintptr(p *byte) uintptr { x := *(*uintptr)(unsafe.Pointer(p))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
// Merge results. s.startBlock(bEnd) return s.variable(n, types.Types[types.TINT]) } } addF("math/bits", "OnesCount64", makeOnesCountAMD64(ssa.OpPopCount64), sys.AMD64) addF("math/bits", "OnesCount64", func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value { return s.newValue1(ssa.OpPopCount64, types.Types[types.TINT], args[0]) },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/regalloc.go
str += " " } str += s.registers[r].String() } return str } // countRegs returns the number of set bits in the register mask. func countRegs(r regMask) int { return bits.OnesCount64(uint64(r)) } // pickReg picks an arbitrary register from the register mask. func pickReg(r regMask) register { if r == 0 { panic("can't pick a register from an empty set") } // pick the lowest one
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:49:56 UTC 2023 - 87.2K bytes - Viewed (0)