Home
last modified time | relevance | path

Searched refs:rounded_size (Results 1 – 2 of 2) sorted by relevance

/third_party/libffi/src/
Dclosures.c60 size_t rounded_size; in ffi_closure_alloc() local
73 rounded_size = (size + overhead + page_size - 1) & ~(page_size - 1); in ffi_closure_alloc()
77 dataseg = mmap(NULL, rounded_size, prot, MAP_ANON | MAP_PRIVATE, -1, 0); in ffi_closure_alloc()
82 codeseg = mremap(dataseg, rounded_size, NULL, rounded_size, MAP_REMAPDUP); in ffi_closure_alloc()
84 munmap(dataseg, rounded_size); in ffi_closure_alloc()
87 if (mprotect(codeseg, rounded_size, PROT_READ | PROT_EXEC) == -1) { in ffi_closure_alloc()
88 munmap(codeseg, rounded_size); in ffi_closure_alloc()
89 munmap(dataseg, rounded_size); in ffi_closure_alloc()
94 memcpy(dataseg, &rounded_size, sizeof(rounded_size)); in ffi_closure_alloc()
104 size_t rounded_size; in ffi_closure_free() local
[all …]
/third_party/unity/extras/memory/src/
Dunity_memory.c60 size_t rounded_size; in unity_size_round_up() local
62rounded_size = ((size + UNITY_MALLOC_ALIGNMENT - 1) / UNITY_MALLOC_ALIGNMENT) * UNITY_MALLOC_ALIGN… in unity_size_round_up()
64 return rounded_size; in unity_size_round_up()