* Helper for allocating size bytes aligned on a boundary. */
| 53 | * Helper for allocating size bytes aligned on a boundary. |
| 54 | */ |
| 55 | void t_posix_memalign(void **memptr, size_t alignment, size_t size) |
| 56 | { |
| 57 | int ret; |
| 58 | ret = posix_memalign(memptr, alignment, size); |
| 59 | assert(!ret); |
| 60 | } |
| 61 | |
| 62 | /* |
| 63 | * Helper for allocating space for an array of nmemb elements |
no outgoing calls