Bitcoin Core 28.99.0
P2P Digital Currency
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__)
8SECP256K1_GNUC_EXT typedef unsigned __int128 uint128_t;
9SECP256K1_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
16typedef uint128_t secp256k1_uint128;
17typedef int128_t secp256k1_int128;
18
19#endif
int128_t secp256k1_int128
Definition: int128_native.h:17
uint128_t secp256k1_uint128
Definition: int128_native.h:16
#define SECP256K1_GNUC_EXT
Definition: util.h:204