Monero
Loading...
Searching...
No Matches
aligned.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include "aligned.h"
Include dependency graph for aligned.c:

Classes

struct  control

Macros

#define MAGIC   0xaa0817161500ff81
#define MAGIC_FREED   0xaa0817161500ff82

Functions

static int is_power_of_2 (size_t n)
static void local_abort (const char *msg)
void * aligned_malloc (size_t bytes, size_t align)
void * aligned_realloc (void *ptr, size_t bytes, size_t align)
void aligned_free (void *ptr)

Macro Definition Documentation

◆ MAGIC

#define MAGIC   0xaa0817161500ff81

◆ MAGIC_FREED

#define MAGIC_FREED   0xaa0817161500ff82

Function Documentation

◆ aligned_free()

void aligned_free ( void * ptr)

◆ aligned_malloc()

void * aligned_malloc ( size_t bytes,
size_t align )

◆ aligned_realloc()

void * aligned_realloc ( void * ptr,
size_t bytes,
size_t align )

◆ is_power_of_2()

int is_power_of_2 ( size_t n)
inlinestatic

◆ local_abort()

void local_abort ( const char * msg)
static