#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 | secp256k1_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.
|
|
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.
|
|
static SECP256K1_INLINE int | secp256k1_ctz32_var_debruijn (uint32_t x) |
|
static SECP256K1_INLINE int | secp256k1_ctz64_var_debruijn (uint64_t x) |
|
static SECP256K1_INLINE int | secp256k1_ctz32_var (uint32_t x) |
|
static SECP256K1_INLINE int | secp256k1_ctz64_var (uint64_t x) |
|
◆ __has_builtin
◆ ALIGNMENT
◆ CHECK
Value:
} \
} while(0)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition at line 53 of file util.h.
◆ EXPECT
◆ I64FORMAT
◆ I64uFORMAT
◆ ROUND_TO_ALIGN
◆ SECP256K1_GNUC_EXT
◆ SECP256K1_RESTRICT
◆ SECP256K1_WIDEMUL_INT64
#define SECP256K1_WIDEMUL_INT64 1 |
◆ TEST_FAILURE
Value:
Definition at line 34 of file util.h.
◆ VERIFY_CHECK
◆ VERIFY_SETUP
◆ VG_CHECK
◆ VG_CHECK_VERIFY
#define VG_CHECK_VERIFY |
( |
|
x, |
|
|
|
y |
|
) |
| |
◆ VG_UNDEF
◆ checked_malloc()
◆ checked_realloc()
◆ manual_alloc()
◆ secp256k1_callback_call()
◆ secp256k1_ctz32_var()
◆ secp256k1_ctz32_var_debruijn()
◆ secp256k1_ctz64_var()
◆ secp256k1_ctz64_var_debruijn()
◆ secp256k1_int_cmov()
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.
◆ secp256k1_memcmp_var()
◆ secp256k1_memczero()