Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mem.hpp File Reference
#include "log.hpp"
#include "memory.h"
#include "tracy/Tracy.hpp"
#include "wasm_export.hpp"
#include <cstdlib>
#include <memory>

Go to the source code of this file.

Macros

#define TRACY_ALLOC(t, size)   TracyAllocS(t, size, /*stack depth*/ 10)
 
#define TRACY_FREE(t)   TracyFreeS(t, /*stack depth*/ 10)
 
#define TRACY_GATE_ALLOC(t)
 
#define TRACY_GATE_FREE(t)
 
#define pad(size, alignment)   (size - (size % alignment) + ((size % alignment) == 0 ? 0 : alignment))
 

Functions

void * tracy_malloc (size_t size)
 
void tracy_free (void *mem)
 

Macro Definition Documentation

◆ pad

#define pad (   size,
  alignment 
)    (size - (size % alignment) + ((size % alignment) == 0 ? 0 : alignment))

Definition at line 38 of file mem.hpp.

◆ TRACY_ALLOC

#define TRACY_ALLOC (   t,
  size 
)    TracyAllocS(t, size, /*stack depth*/ 10)

Definition at line 14 of file mem.hpp.

◆ TRACY_FREE

#define TRACY_FREE (   t)    TracyFreeS(t, /*stack depth*/ 10)

Definition at line 15 of file mem.hpp.

◆ TRACY_GATE_ALLOC

#define TRACY_GATE_ALLOC (   t)

Definition at line 16 of file mem.hpp.

◆ TRACY_GATE_FREE

#define TRACY_GATE_FREE (   t)

Definition at line 17 of file mem.hpp.

Function Documentation

◆ tracy_free()

void tracy_free ( void *  mem)
inline

Definition at line 128 of file mem.hpp.

◆ tracy_malloc()

void * tracy_malloc ( size_t  size)
inline

Definition at line 120 of file mem.hpp.