#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <limits.h>
Go to the source code of this file.
◆ __has_builtin
#define __has_builtin |
( |
| x | ) |
|
Value:
Definition at line 252 of file util.h.
◆ ALIGNMENT
◆ CHECK
Value: do { \
TEST_FAILURE("test condition failed: " #cond); \
} \
} while(0)
Definition at line 80 of file util.h.
80#define CHECK(cond) do { \
81 if (EXPECT(!(cond), 0)) { \
82 TEST_FAILURE("test condition failed: " #cond); \
83 } \
84} while(0)
◆ EXPECT
Value:
Definition at line 70 of file util.h.
◆ I64FORMAT
◆ I64uFORMAT
◆ ROUND_TO_ALIGN
#define ROUND_TO_ALIGN |
( |
| size | ) |
|
Value:
Definition at line 143 of file util.h.
◆ SECP256K1_GNUC_EXT
#define SECP256K1_GNUC_EXT |
◆ SECP256K1_RESTRICT
#define SECP256K1_RESTRICT |
◆ SECP256K1_WIDEMUL_INT64
#define SECP256K1_WIDEMUL_INT64 1 |
◆ TEST_FAILURE
#define TEST_FAILURE |
( |
| msg | ) |
|
Value: do { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
abort(); \
} while(0)
Definition at line 61 of file util.h.
61#define TEST_FAILURE(msg) do { \
62 fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
63 abort(); \
64} while(0)
◆ VERIFY_CHECK
#define VERIFY_CHECK |
( |
| cond | ) |
|
Value:do { (void)(cond); } while(0)
Definition at line 95 of file util.h.
◆ VERIFY_SETUP
#define VERIFY_SETUP |
( |
| stmt | ) |
|
◆ VG_CHECK
#define VG_CHECK |
( |
| x, |
|
|
| y ) |
◆ VG_CHECK_VERIFY
#define VG_CHECK_VERIFY |
( |
| x, |
|
|
| y ) |
◆ VG_UNDEF
#define VG_UNDEF |
( |
| x, |
|
|
| y ) |