Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
int128_native_impl.h File Reference
#include "int128.h"
#include "util.h"
Include dependency graph for int128_native_impl.h:

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 n)
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

Definition at line 53 of file int128_native_impl.h.

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

Definition at line 88 of file int128_native_impl.h.

Here is the call 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

Definition at line 59 of file int128_native_impl.h.

◆ secp256k1_i128_eq_var()

SECP256K1_INLINE int secp256k1_i128_eq_var ( const secp256k1_int128 * a,
const secp256k1_int128 * b )
static

Definition at line 84 of file int128_native_impl.h.

◆ secp256k1_i128_from_i64()

SECP256K1_INLINE void secp256k1_i128_from_i64 ( secp256k1_int128 * r,
int64_t a )
static

Definition at line 80 of file int128_native_impl.h.

◆ secp256k1_i128_load()

SECP256K1_INLINE void secp256k1_i128_load ( secp256k1_int128 * r,
int64_t hi,
uint64_t lo )
static

Definition at line 45 of file int128_native_impl.h.

◆ secp256k1_i128_mul()

SECP256K1_INLINE void secp256k1_i128_mul ( secp256k1_int128 * r,
int64_t a,
int64_t b )
static

Definition at line 49 of file int128_native_impl.h.

Here is the caller graph for this function:

◆ secp256k1_i128_rshift()

SECP256K1_INLINE void secp256k1_i128_rshift ( secp256k1_int128 * r,
unsigned int n )
static

Definition at line 66 of file int128_native_impl.h.

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

Definition at line 75 of file int128_native_impl.h.

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

Definition at line 71 of file int128_native_impl.h.

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

Definition at line 15 of file int128_native_impl.h.

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

Definition at line 19 of file int128_native_impl.h.

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

Definition at line 40 of file int128_native_impl.h.

◆ secp256k1_u128_from_u64()

SECP256K1_INLINE void secp256k1_u128_from_u64 ( secp256k1_uint128 * r,
uint64_t a )
static

Definition at line 36 of file int128_native_impl.h.

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

Definition at line 32 of file int128_native_impl.h.

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

Definition at line 7 of file int128_native_impl.h.

◆ secp256k1_u128_mul()

SECP256K1_INLINE void secp256k1_u128_mul ( secp256k1_uint128 * r,
uint64_t a,
uint64_t b )
static

Definition at line 11 of file int128_native_impl.h.

Here is the caller graph for this function:

◆ secp256k1_u128_rshift()

SECP256K1_INLINE void secp256k1_u128_rshift ( secp256k1_uint128 * r,
unsigned int n )
static

Definition at line 23 of file int128_native_impl.h.

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

Definition at line 28 of file int128_native_impl.h.

Here is the caller graph for this function: