- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for Bitmap (0.47 sec)
-
pkg/registry/core/service/ipallocator/bitmap.go
base := netutils.BigForIP(cidr.IP) rangeSpec := cidr.String() var family api.IPFamily if netutils.IsIPv6CIDR(cidr) { family = api.IPv6Protocol // Limit the max size, since the allocator keeps a bitmap of that size. if max > 65536 { max = 65536 } } else { family = api.IPv4Protocol // Don't use the IPv4 network's broadcast address, but don't just
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 10.8K bytes - Viewed (0) -
src/runtime/mpallocbits.go
// license that can be found in the LICENSE file. package runtime import ( "runtime/internal/sys" ) // pageBits is a bitmap representing one bit per page in a palloc chunk. type pageBits [pallocChunkPages / 64]uint64 // get returns the value of the i'th bit in the bitmap. func (b *pageBits) get(i uint) uint { return uint((b[i/64] >> (i % 64)) & 1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 15:13:43 UTC 2024 - 12.5K bytes - Viewed (0) -
src/runtime/arena.go
// Flush mask to the memory bitmap. idx := h.offset / (ptrBits * goarch.PtrSize) m := uintptr(1)<<h.low - 1 bitmap := s.heapBits() bitmap[idx] = bswapIfBigEndian(bswapIfBigEndian(bitmap[idx])&m | data) // Note: no synchronization required for this write because // the allocator has exclusive access to the page, and the bitmap // entries are all for a single page. Also, visibility of these
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/reflect/abi.go
stackCallArgsSize, retOffset, spill uintptr // stackPtrs is a bitmap that indicates whether // each word in the ABI stack space (stack-assigned // args + return values) is a pointer. Used // as the heap pointer bitmap for stack space // passed to reflectcall. stackPtrs *bitVector // inRegPtrs is a bitmap whose i'th bit indicates // whether the i'th integer argument register contains
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:08:32 UTC 2024 - 15K bytes - Viewed (0) -
src/runtime/mpagealloc.go
// // Pages are managed using a bitmap that is sharded into chunks. // In the bitmap, 1 means in-use, and 0 means free. The bitmap spans the // process's address space. Chunks are managed in a sparse-array-style structure // similar to mheap.arenas, since the bitmap may be large on some systems. // // The bitmap is efficiently searched by using a radix tree in combination
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 39.2K bytes - Viewed (0) -
src/runtime/mpallocbits_test.go
i, n uint // bit range to popcnt over. want uint // expected popcnt result on that range. } tests := map[string]struct { init []BitRange // bit ranges to set to 1 in the bitmap. tests []test // a set of popcnt tests to run over the bitmap. }{ "None": { tests: []test{ {0, 1, 0}, {5, 3, 0}, {2, 11, 0}, {PallocChunkPages/4 + 1, PallocChunkPages / 2, 0}, {0, PallocChunkPages, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 17 22:00:17 UTC 2020 - 13.7K bytes - Viewed (0) -
src/internal/abi/type.go
) // MaxPtrmaskBytes is the maximum length of a GC ptrmask bitmap, // which holds 1-bit entries describing where pointers are in a given type. // Above this length, the GC information is recorded as a GC program, // which can express repetition compactly. In either form, the // information is used by the runtime to initialize the heap bitmap, // and for large types (like 128 or more words), they are roughly the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/pcln.go
ldr.SetAttrReachable(state.findfunctab, true) ldr.SetAttrLocal(state.findfunctab, true) } // findContainerSyms returns a bitmap, indexed by symbol number, where there's // a 1 for every container symbol. func (ctxt *Link) findContainerSyms() loader.Bitmap { ldr := ctxt.loader container := loader.MakeBitmap(ldr.NSym()) // Find container symbols and mark them as such. for _, s := range ctxt.Textp {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 29.6K bytes - Viewed (0) -
src/runtime/heapdump.go
} n := nptr/8 + 1 p := sysAlloc(n, &memstats.other_sys) if p == nil { throw("heapdump: out of memory") } tmpbuf = (*[1 << 30]byte)(p)[:n] } // Convert heap bitmap to pointer bitmap. clear(tmpbuf[:nptr/8+1]) s := spanOf(p) tp := s.typePointersOf(p, size) for { var addr uintptr if tp, addr = tp.next(p + size); addr == 0 { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 17.6K bytes - Viewed (0) -
src/go/doc/comment/parse.go
return true } return false } // isHost reports whether c is a byte that can appear in a URL host, // like www.example.com or user@[::1]:8080 func isHost(c byte) bool { // mask is a 128-bit bitmap with 1s for allowed bytes, // so that the byte c can be tested with a shift and an and. // If c > 128, then 1<<c and 1<<(c-64) will both be zero, // and this function will return false. const mask = 0 |
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0)