lib/facil/legacy/fio_mem.c
/* *****************************************************************************
Non-Block allocations (direct from the system)
***************************************************************************** */
Non-Block allocations (direct from the system)
Non - Block allocations ( direct from the system )
static inline void *big_alloc(size_t size) {
  size = sys_round_size(size + 16);
  size_t *mem = sys_alloc(size, 1);
  if (!mem)
    goto error;
  *mem = size;
  return (void *)(((uintptr_t)mem) + 16);
error:
  return NULL;
}
static inline void * big_alloc ( size_t size ) { size = sys_round_size ( size + 16 ) ; size_t * mem = sys_alloc ( size , 1 ) ; if ( ! mem ) goto error ; * mem = size ; return ( void * ) ( ( ( uintptr_t ) mem ) + 16 ) ; error : return NULL ; }
Non-Block allocations (direct from the system)
Non - Block allocations ( direct from the system )