Bitcoin Core
31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
secp256k1
src
int128_native.h
Go to the documentation of this file.
1
#ifndef SECP256K1_INT128_NATIVE_H
2
#define SECP256K1_INT128_NATIVE_H
3
4
#include <stdint.h>
5
#include "
util.h
"
6
7
#if !defined(UINT128_MAX) && defined(__SIZEOF_INT128__)
8
SECP256K1_GNUC_EXT
typedef
unsigned
__int128
uint128_t
;
9
SECP256K1_GNUC_EXT
typedef
__int128
int128_t
;
10
# define UINT128_MAX ((uint128_t)(-1))
11
# define INT128_MAX ((int128_t)(UINT128_MAX >> 1))
12
# define INT128_MIN (-INT128_MAX - 1)
13
/* No (U)INT128_C macros because compilers providing __int128 do not support 128-bit literals. */
14
#endif
15
16
typedef
uint128_t
secp256k1_uint128
;
17
typedef
int128_t
secp256k1_int128
;
18
19
#endif
secp256k1_int128
int128_t secp256k1_int128
Definition
int128_native.h:17
secp256k1_uint128
uint128_t secp256k1_uint128
Definition
int128_native.h:16
util.h
SECP256K1_GNUC_EXT
#define SECP256K1_GNUC_EXT
Definition
util.h:204
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:73
Generated on Thu Apr 16 2026 09:42:38 for Bitcoin Core by
1.10.0