/dports/math/stanmath/math-4.2.0/lib/tbb_2020.3/src/tbbmalloc/ |
H A D | MapMemory.h | 81 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 86 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP() 97 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 99 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP() 107 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP() 117 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP() 136 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory() 142 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory()
|
H A D | tbbmalloc_internal.h | 103 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024; variable 508 return HUGE_PAGE_SIZE; // the mode is not yet known; assume typical 2MB huge pages
|
/dports/devel/tbb/oneTBB-2020.3/src/tbbmalloc/ |
H A D | MapMemory.h | 81 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 86 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP() 97 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 99 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP() 107 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP() 117 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP() 136 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory() 142 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory()
|
H A D | tbbmalloc_internal.h | 103 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024; variable 508 return HUGE_PAGE_SIZE; // the mode is not yet known; assume typical 2MB huge pages
|
/dports/devel/taskflow/taskflow-3.2.0/3rd-party/tbb/src/tbbmalloc/ |
H A D | MapMemory.h | 81 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 86 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP() 97 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 99 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP() 107 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP() 117 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP() 136 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory() 142 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory()
|
H A D | tbbmalloc_internal.h | 103 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024; variable 508 return HUGE_PAGE_SIZE; // the mode is not yet known; assume typical 2MB huge pages
|
/dports/devel/onetbb/oneTBB-2021.4.0/src/tbbmalloc/ |
H A D | MapMemory.h | 72 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 77 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP() 88 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 90 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP() 98 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP() 108 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP() 127 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory() 133 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory()
|
H A D | tbbmalloc_internal.h | 105 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024; variable 536 return HUGE_PAGE_SIZE; // the mode is not yet known; assume typical 2MB huge pages
|
/dports/multimedia/x264/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/ |
H A D | base.c | 104 #define HUGE_PAGE_SIZE 2*1024*1024 in x264_malloc() macro 105 #define HUGE_PAGE_THRESHOLD HUGE_PAGE_SIZE*7/8 /* FIXME: Is this optimal? */ in x264_malloc() 106 …if( i_size < 0 || (uint64_t)i_size > (SIZE_MAX - HUGE_PAGE_SIZE) /*|| (uint64_t)i_size > (SIZE_MAX… in x264_malloc() 117 align_buf = memalign( HUGE_PAGE_SIZE, i_size ); in x264_malloc() 121 … size_t madv_size = (i_size + HUGE_PAGE_SIZE - HUGE_PAGE_THRESHOLD) & ~(HUGE_PAGE_SIZE-1); in x264_malloc() 140 #undef HUGE_PAGE_SIZE in x264_malloc()
|
/dports/multimedia/libx264/x264-5db6aa6cab1b146e07b60cc1736a01f21da01154/common/ |
H A D | base.c | 104 #define HUGE_PAGE_SIZE 2*1024*1024 in x264_malloc() macro 105 #define HUGE_PAGE_THRESHOLD HUGE_PAGE_SIZE*7/8 /* FIXME: Is this optimal? */ in x264_malloc() 106 …if( i_size < 0 || (uint64_t)i_size > (SIZE_MAX - HUGE_PAGE_SIZE) /*|| (uint64_t)i_size > (SIZE_MAX… in x264_malloc() 117 align_buf = memalign( HUGE_PAGE_SIZE, i_size ); in x264_malloc() 121 … size_t madv_size = (i_size + HUGE_PAGE_SIZE - HUGE_PAGE_THRESHOLD) & ~(HUGE_PAGE_SIZE-1); in x264_malloc() 140 #undef HUGE_PAGE_SIZE in x264_malloc()
|
/dports/lang/ocaml/ocaml-4.05.0/byterun/ |
H A D | compact.c | 463 && Bsize_wsize (caml_stat_heap_wsz) <= HUGE_PAGE_SIZE) in caml_compact_heap() 517 && Bsize_wsize (caml_stat_heap_wsz) <= HUGE_PAGE_SIZE) in caml_compact_heap_maybe()
|
/dports/lang/ocaml-nox11/ocaml-4.05.0/byterun/ |
H A D | compact.c | 463 && Bsize_wsize (caml_stat_heap_wsz) <= HUGE_PAGE_SIZE) in caml_compact_heap() 517 && Bsize_wsize (caml_stat_heap_wsz) <= HUGE_PAGE_SIZE) in caml_compact_heap_maybe()
|
/dports/emulators/vice/vice-3.5/src/lib/libx264/common/ |
H A D | common.c | 1199 #define HUGE_PAGE_SIZE 2*1024*1024 in x264_malloc() macro 1200 #define HUGE_PAGE_THRESHOLD HUGE_PAGE_SIZE*7/8 /* FIXME: Is this optimal? */ in x264_malloc() 1204 align_buf = memalign( HUGE_PAGE_SIZE, i_size ); in x264_malloc() 1208 … size_t madv_size = (i_size + HUGE_PAGE_SIZE - HUGE_PAGE_THRESHOLD) & ~(HUGE_PAGE_SIZE-1); in x264_malloc() 1213 #undef HUGE_PAGE_SIZE in x264_malloc()
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libx264/common/ |
H A D | common.c | 1199 #define HUGE_PAGE_SIZE 2*1024*1024 in x264_malloc() macro 1200 #define HUGE_PAGE_THRESHOLD HUGE_PAGE_SIZE*7/8 /* FIXME: Is this optimal? */ in x264_malloc() 1204 align_buf = memalign( HUGE_PAGE_SIZE, i_size ); in x264_malloc() 1208 … size_t madv_size = (i_size + HUGE_PAGE_SIZE - HUGE_PAGE_THRESHOLD) & ~(HUGE_PAGE_SIZE-1); in x264_malloc() 1213 #undef HUGE_PAGE_SIZE in x264_malloc()
|
/dports/math/stanmath/math-4.2.0/lib/tbb_2020.3/src/test/ |
H A D | test_malloc_whitebox.cpp | 1207 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024; in TestTHP() local 1225 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() 1231 MALLOC_ASSERT(allocSize == HUGE_PAGE_SIZE, in TestTHP() 1237 MALLOC_ASSERT(isAligned(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP() 1256 MALLOC_ASSERT(backend->freeRawMem(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP()
|
/dports/devel/tbb/oneTBB-2020.3/src/test/ |
H A D | test_malloc_whitebox.cpp | 1207 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024; in TestTHP() local 1225 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() 1231 MALLOC_ASSERT(allocSize == HUGE_PAGE_SIZE, in TestTHP() 1237 MALLOC_ASSERT(isAligned(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP() 1256 MALLOC_ASSERT(backend->freeRawMem(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP()
|
/dports/devel/taskflow/taskflow-3.2.0/3rd-party/tbb/src/test/ |
H A D | test_malloc_whitebox.cpp | 1207 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024; in TestTHP() local 1225 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() 1231 MALLOC_ASSERT(allocSize == HUGE_PAGE_SIZE, in TestTHP() 1237 MALLOC_ASSERT(isAligned(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP() 1256 MALLOC_ASSERT(backend->freeRawMem(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP()
|
/dports/devel/onetbb/oneTBB-2021.4.0/test/tbbmalloc/ |
H A D | test_malloc_whitebox.cpp | 1260 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024; in TestTHP() local 1278 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() 1284 REQUIRE_MESSAGE(allocSize == HUGE_PAGE_SIZE, in TestTHP() 1290 REQUIRE_MESSAGE(isAligned(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP() 1309 REQUIRE_MESSAGE(backend->freeRawMem(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP()
|
/dports/devel/efl/efl-1.25.1/src/lib/evas/common/ |
H A D | evas_image_main.c | 90 #define HUGE_PAGE_SIZE (2 * 1024 * 1024) in _evas_common_rgba_image_surface_size() macro 403 if (siz > ((HUGE_PAGE_SIZE * 75) / 100)) in _evas_common_rgba_image_surface_mmap()
|
/dports/lang/ocaml/ocaml-4.05.0/byterun/caml/ |
H A D | memory.h | 76 #define Heap_page_size HUGE_PAGE_SIZE
|
/dports/lang/ocaml-nox11/ocaml-4.05.0/byterun/caml/ |
H A D | memory.h | 76 #define Heap_page_size HUGE_PAGE_SIZE
|