Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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__)
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
18
19#endif
int128_t secp256k1_int128
uint128_t secp256k1_uint128
#define SECP256K1_GNUC_EXT
Definition util.h:204
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73