purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
scratch_frames.c File Reference
#include <stdatomic.h>
#include <stdlib.h>
#include <string.h>
#include "third_party/secp256k1-zkp/src/scratch_impl.h"

Go to the source code of this file.

Data Structures

struct  purify_bulletproof_scratch_frames
 

Typedefs

typedef struct purify_bulletproof_scratch_frames purify_bulletproof_scratch_frames
 

Functions

static void purify_bulletproof_scratch_frames_acquire_lock (void)
 
static void purify_bulletproof_scratch_frames_release_lock (void)
 
static purify_bulletproof_scratch_framespurify_bulletproof_scratch_frames_find (secp256k1_scratch *scratch, purify_bulletproof_scratch_frames **prev_out)
 
int secp256k1_scratch_allocate_frame (secp256k1_scratch *scratch, size_t n, size_t objects)
 
void secp256k1_scratch_deallocate_frame (secp256k1_scratch *scratch)
 

Variables

static atomic_flag purify_bulletproof_scratch_frames_lock = ATOMIC_FLAG_INIT
 
static purify_bulletproof_scratch_framespurify_bulletproof_scratch_frames_head = NULL
 

Typedef Documentation

◆ purify_bulletproof_scratch_frames

Function Documentation

◆ purify_bulletproof_scratch_frames_acquire_lock()

static void purify_bulletproof_scratch_frames_acquire_lock ( void  )
static

◆ purify_bulletproof_scratch_frames_find()

static purify_bulletproof_scratch_frames * purify_bulletproof_scratch_frames_find ( secp256k1_scratch *  scratch,
purify_bulletproof_scratch_frames **  prev_out 
)
static

◆ purify_bulletproof_scratch_frames_release_lock()

static void purify_bulletproof_scratch_frames_release_lock ( void  )
static

◆ secp256k1_scratch_allocate_frame()

◆ secp256k1_scratch_deallocate_frame()

Variable Documentation

◆ purify_bulletproof_scratch_frames_head

purify_bulletproof_scratch_frames* purify_bulletproof_scratch_frames_head = NULL
static

◆ purify_bulletproof_scratch_frames_lock

atomic_flag purify_bulletproof_scratch_frames_lock = ATOMIC_FLAG_INIT
static