- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for alignDown (0.18 sec)
-
src/runtime/mem_linux.go
func sysHugePageOS(v unsafe.Pointer, n uintptr) { if physHugePageSize != 0 { // Round v up to a huge page boundary. beg := alignUp(uintptr(v), physHugePageSize) // Round v+n down to a huge page boundary. end := alignDown(uintptr(v)+n, physHugePageSize) if beg < end { madvise(unsafe.Pointer(beg), end-beg, _MADV_HUGEPAGE) } } } func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5K bytes - Viewed (0)