#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <limits.h>
Go to the source code of this file.
|
| static SECP256K1_INLINE void | secp256k1_callback_call (const secp256k1_callback *const cb, const char *const text) |
| |
| static SECP256K1_INLINE void * | checked_malloc (const secp256k1_callback *cb, size_t size) |
| |
| static SECP256K1_INLINE void * | checked_realloc (const secp256k1_callback *cb, void *ptr, size_t size) |
| |
| static SECP256K1_INLINE void * | manual_alloc (void **prealloc_ptr, size_t alloc_size, void *base, size_t max_size) |
| |
| static SECP256K1_INLINE void | memczero (void *s, size_t len, int flag) |
| |
| static SECP256K1_INLINE int | secp256k1_memcmp_var (const void *s1, const void *s2, size_t n) |
| | Semantics like memcmp. More...
|
| |
| static SECP256K1_INLINE void | secp256k1_int_cmov (int *r, const int *a, int flag) |
| | If flag is true, set *r equal to *a; otherwise leave it. More...
|
| |
Value:
} \
} while(0)
#define TEST_FAILURE(msg)
Definition at line 53 of file util.h.
| #define EXPECT |
( |
|
x, |
|
|
|
c |
|
) |
| (x) |
| #define SECP256K1_GNUC_EXT |
| #define SECP256K1_RESTRICT |
| #define SECP256K1_WIDEMUL_INT64 1 |
| #define TEST_FAILURE |
( |
|
msg | ) |
|
Value:do { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
abort(); \
} while(0)
Definition at line 34 of file util.h.
| #define VERIFY_CHECK |
( |
|
cond | ) |
do { (void)(cond); } while(0) |
| #define VERIFY_SETUP |
( |
|
stmt | ) |
|
| #define VG_CHECK |
( |
|
x, |
|
|
|
y |
|
) |
| |
| #define VG_CHECK_VERIFY |
( |
|
x, |
|
|
|
y |
|
) |
| |
| #define VG_UNDEF |
( |
|
x, |
|
|
|
y |
|
) |
| |
| static SECP256K1_INLINE void* manual_alloc |
( |
void ** |
prealloc_ptr, |
|
|
size_t |
alloc_size, |
|
|
void * |
base, |
|
|
size_t |
max_size |
|
) |
| |
|
static |
| static SECP256K1_INLINE void secp256k1_int_cmov |
( |
int * |
r, |
|
|
const int * |
a, |
|
|
int |
flag |
|
) |
| |
|
static |
If flag is true, set *r equal to *a; otherwise leave it.
Constant-time. Both *r and *a must be initialized and non-negative.
Definition at line 238 of file util.h.
| static SECP256K1_INLINE int secp256k1_memcmp_var |
( |
const void * |
s1, |
|
|
const void * |
s2, |
|
|
size_t |
n |
|
) |
| |
|
static |