13#include "third_party/secp256k1-zkp/src/scratch_impl.h"
45 if (prev_out != NULL) {
65 memset(frames, 0,
sizeof(*frames));
74 if (n > secp256k1_scratch_max_allocation(&default_error_callback,
scratch, objects)) {
90 VERIFY_CHECK(frames != NULL);
91 VERIFY_CHECK(frames->
depth > 0);
93 if (frames->
depth == 0) {
static purify_bulletproof_scratch_frames * purify_bulletproof_scratch_frames_head
static atomic_flag purify_bulletproof_scratch_frames_lock
static void purify_bulletproof_scratch_frames_release_lock(void)
int secp256k1_scratch_allocate_frame(secp256k1_scratch *scratch, size_t n, size_t objects)
static purify_bulletproof_scratch_frames * purify_bulletproof_scratch_frames_find(secp256k1_scratch *scratch, purify_bulletproof_scratch_frames **prev_out)
void secp256k1_scratch_deallocate_frame(secp256k1_scratch *scratch)
static void purify_bulletproof_scratch_frames_acquire_lock(void)
struct purify_bulletproof_scratch_frames * next
secp256k1_scratch * scratch