Good size for allocation
| 108 | |
| 109 | // Good size for allocation |
| 110 | size_t mi_good_size(size_t size) mi_attr_noexcept { |
| 111 | if (size <= MI_MEDIUM_OBJ_SIZE_MAX) { |
| 112 | return _mi_bin_size(mi_bin(size)); |
| 113 | } |
| 114 | else { |
| 115 | return _mi_align_up(size,_mi_os_page_size()); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | #if (MI_DEBUG>1) |
| 120 | static bool mi_page_queue_contains(mi_page_queue_t* queue, const mi_page_t* page) { |
no test coverage detected