Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
int128.h File Reference
#include "util.h"
#include "int128_struct.h"
Include dependency graph for int128.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static SECP256K1_INLINE void secp256k1_u128_load (secp256k1_uint128 *r, uint64_t hi, uint64_t lo)
static SECP256K1_INLINE void secp256k1_u128_mul (secp256k1_uint128 *r, uint64_t a, uint64_t b)
static SECP256K1_INLINE void secp256k1_u128_accum_mul (secp256k1_uint128 *r, uint64_t a, uint64_t b)
static SECP256K1_INLINE void secp256k1_u128_accum_u64 (secp256k1_uint128 *r, uint64_t a)
static SECP256K1_INLINE void secp256k1_u128_rshift (secp256k1_uint128 *r, unsigned int n)
static SECP256K1_INLINE uint64_t secp256k1_u128_to_u64 (const secp256k1_uint128 *a)
static SECP256K1_INLINE uint64_t secp256k1_u128_hi_u64 (const secp256k1_uint128 *a)
static SECP256K1_INLINE void secp256k1_u128_from_u64 (secp256k1_uint128 *r, uint64_t a)
static SECP256K1_INLINE int secp256k1_u128_check_bits (const secp256k1_uint128 *r, unsigned int n)
static SECP256K1_INLINE void secp256k1_i128_load (secp256k1_int128 *r, int64_t hi, uint64_t lo)
static SECP256K1_INLINE void secp256k1_i128_mul (secp256k1_int128 *r, int64_t a, int64_t b)
static SECP256K1_INLINE void secp256k1_i128_accum_mul (secp256k1_int128 *r, int64_t a, int64_t b)
static SECP256K1_INLINE void secp256k1_i128_det (secp256k1_int128 *r, int64_t a, int64_t b, int64_t c, int64_t d)
static SECP256K1_INLINE void secp256k1_i128_rshift (secp256k1_int128 *r, unsigned int b)
static SECP256K1_INLINE uint64_t secp256k1_i128_to_u64 (const secp256k1_int128 *a)
static SECP256K1_INLINE int64_t secp256k1_i128_to_i64 (const secp256k1_int128 *a)
static SECP256K1_INLINE void secp256k1_i128_from_i64 (secp256k1_int128 *r, int64_t a)
static SECP256K1_INLINE int secp256k1_i128_eq_var (const secp256k1_int128 *a, const secp256k1_int128 *b)
static SECP256K1_INLINE int secp256k1_i128_check_pow2 (const secp256k1_int128 *r, unsigned int n, int sign)

Function Documentation

◆ secp256k1_i128_accum_mul()

SECP256K1_INLINE void secp256k1_i128_accum_mul ( secp256k1_int128 * r,
int64_t a,
int64_t b )
static
Here is the caller graph for this function:

◆ secp256k1_i128_check_pow2()

SECP256K1_INLINE int secp256k1_i128_check_pow2 ( const secp256k1_int128 * r,
unsigned int n,
int sign )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_i128_det()

SECP256K1_INLINE void secp256k1_i128_det ( secp256k1_int128 * r,
int64_t a,
int64_t b,
int64_t c,
int64_t d )
static
Here is the caller graph for this function:

◆ secp256k1_i128_eq_var()

SECP256K1_INLINE int secp256k1_i128_eq_var ( const secp256k1_int128 * a,
const secp256k1_int128 * b )
static
Here is the caller graph for this function:

◆ secp256k1_i128_from_i64()

SECP256K1_INLINE void secp256k1_i128_from_i64 ( secp256k1_int128 * r,
int64_t a )
static
Here is the caller graph for this function:

◆ secp256k1_i128_load()

SECP256K1_INLINE void secp256k1_i128_load ( secp256k1_int128 * r,
int64_t hi,
uint64_t lo )
static
Here is the caller graph for this function:

◆ secp256k1_i128_mul()

SECP256K1_INLINE void secp256k1_i128_mul ( secp256k1_int128 * r,
int64_t a,
int64_t b )
static
Here is the caller graph for this function:

◆ secp256k1_i128_rshift()

SECP256K1_INLINE void secp256k1_i128_rshift ( secp256k1_int128 * r,
unsigned int b )
static
Here is the caller graph for this function:

◆ secp256k1_i128_to_i64()

SECP256K1_INLINE int64_t secp256k1_i128_to_i64 ( const secp256k1_int128 * a)
static
Here is the caller graph for this function:

◆ secp256k1_i128_to_u64()

SECP256K1_INLINE uint64_t secp256k1_i128_to_u64 ( const secp256k1_int128 * a)
static
Here is the caller graph for this function:

◆ secp256k1_u128_accum_mul()

SECP256K1_INLINE void secp256k1_u128_accum_mul ( secp256k1_uint128 * r,
uint64_t a,
uint64_t b )
static
Here is the caller graph for this function:

◆ secp256k1_u128_accum_u64()

SECP256K1_INLINE void secp256k1_u128_accum_u64 ( secp256k1_uint128 * r,
uint64_t a )
static
Here is the caller graph for this function:

◆ secp256k1_u128_check_bits()

SECP256K1_INLINE int secp256k1_u128_check_bits ( const secp256k1_uint128 * r,
unsigned int n )
static
Here is the caller graph for this function:

◆ secp256k1_u128_from_u64()

SECP256K1_INLINE void secp256k1_u128_from_u64 ( secp256k1_uint128 * r,
uint64_t a )
static
Here is the caller graph for this function:

◆ secp256k1_u128_hi_u64()

SECP256K1_INLINE uint64_t secp256k1_u128_hi_u64 ( const secp256k1_uint128 * a)
static
Here is the caller graph for this function:

◆ secp256k1_u128_load()

SECP256K1_INLINE void secp256k1_u128_load ( secp256k1_uint128 * r,
uint64_t hi,
uint64_t lo )
static
Here is the caller graph for this function:

◆ secp256k1_u128_mul()

SECP256K1_INLINE void secp256k1_u128_mul ( secp256k1_uint128 * r,
uint64_t a,
uint64_t b )
static
Here is the caller graph for this function:

◆ secp256k1_u128_rshift()

SECP256K1_INLINE void secp256k1_u128_rshift ( secp256k1_uint128 * r,
unsigned int n )
static
Here is the caller graph for this function:

◆ secp256k1_u128_to_u64()

SECP256K1_INLINE uint64_t secp256k1_u128_to_u64 ( const secp256k1_uint128 * a)
static
Here is the caller graph for this function: