HiRep 0.1
Loading...
Searching...
No Matches
amalloc.c File Reference

Align memory (de)allocation functions. More...

#include <stdlib.h>
#include "memory.h"
Include dependency graph for amalloc.c:

Data Structures

struct  addr_t
 

Functions

void * amalloc (size_t size, int p)
 Allocated memory aligned, because this improves bandwidth.
 
void afree (void *addr)
 Free memory that was allocated aligned using amalloc.
 

Detailed Description

Align memory (de)allocation functions.

Function Documentation

◆ afree()

void afree ( void * addr)

Free memory that was allocated aligned using amalloc.

Parameters
addrFree this pointer

◆ amalloc()

void * amalloc ( size_t size,
int p )

Allocated memory aligned, because this improves bandwidth.

Parameters
sizesize to be allocated
palignment