- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for fillAligned (0.23 sec)
-
src/runtime/mgcscavenge.go
unlock(p.mheapLock) return 0 } // fillAligned returns x but with all zeroes in m-aligned // groups of m bits set to 1 if any bit in the group is non-zero. // // For example, fillAligned(0x0100a3, 8) == 0xff00ff. // // Note that if m == 1, this is a no-op. // // m must be a power of 2 <= maxPagesPerPhysPage. func fillAligned(x uint64, m uint) uint64 { apply := func(x uint64, c uint64) uint64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/runtime/mgcscavenge_test.go
break } } } return out } check := func(x uint64, m uint) { want := fillAlignedSlow(x, m) if got := FillAligned(x, m); got != want { t.Logf("got: %064b", got) t.Logf("want: %064b", want) t.Errorf("bad fillAligned(%016x, %d)", x, m) } } for m := uint(1); m <= 64; m *= 2 { tests := []uint64{ 0x0000000000000000, 0x00000000ffffffff, 0xffffffff00000000,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.2K bytes - Viewed (0) -
src/runtime/export_test.go
return (*PallocBits)(&(*pallocData)(d).pallocBits) } func (d *PallocData) Scavenged() *PallocBits { return (*PallocBits)(&(*pallocData)(d).scavenged) } // Expose fillAligned for testing. func FillAligned(x uint64, m uint) uint64 { return fillAligned(x, m) } // Expose pageCache for testing. type PageCache pageCache const PageCachePages = pageCachePages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)