ARGOBOTS
Macros | Functions
abtu.h File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "abt_config.h"
Include dependency graph for abtu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABTU_likely(cond)   __builtin_expect(!!(cond), 1)
 
#define ABTU_unlikely(cond)   __builtin_expect(!!(cond), 0)
 
#define ABTU_strcpy(d, s)   strcpy(d, s)
 
#define ABTU_strncpy(d, s, n)   strncpy(d, s, n)
 

Functions

static void * ABTU_memalign (size_t alignment, size_t size)
 
static void ABTU_free (void *ptr)
 
static void * ABTU_malloc (size_t size)
 
static void * ABTU_calloc (size_t num, size_t size)
 
static void * ABTU_realloc (void *ptr, size_t old_size, size_t new_size)
 
char * ABTU_get_indent_str (int indent)
 
int ABTU_get_int_len (size_t num)
 

Macro Definition Documentation

#define ABTU_likely (   cond)    __builtin_expect(!!(cond), 1)

Definition at line 16 of file abtu.h.

#define ABTU_strcpy (   d,
 
)    strcpy(d, s)

Definition at line 84 of file abtu.h.

Referenced by ABT_error_get_str().

#define ABTU_strncpy (   d,
  s,
 
)    strncpy(d, s, n)

Definition at line 85 of file abtu.h.

#define ABTU_unlikely (   cond)    __builtin_expect(!!(cond), 0)

Definition at line 17 of file abtu.h.

Function Documentation

static void* ABTU_calloc ( size_t  num,
size_t  size 
)
inlinestatic
static void ABTU_free ( void *  ptr)
inlinestatic
char* ABTU_get_indent_str ( int  indent)
int ABTU_get_int_len ( size_t  num)

Definition at line 23 of file util.c.

static void* ABTU_malloc ( size_t  size)
inlinestatic
static void* ABTU_memalign ( size_t  alignment,
size_t  size 
)
inlinestatic

Definition at line 25 of file abtu.h.

Referenced by ABTU_malloc().

static void* ABTU_realloc ( void *  ptr,
size_t  old_size,
size_t  new_size 
)
inlinestatic