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

Go to the source code of this file.

Macros

#define VERIFY_BITS(x, n)
#define VERIFY_BITS_128(x, n)

Functions

static SECP256K1_INLINE void secp256k1_fe_mul_inner (uint64_t *r, const uint64_t *a, const uint64_t *SECP256K1_RESTRICT b)
static SECP256K1_INLINE void secp256k1_fe_sqr_inner (uint64_t *r, const uint64_t *a)

Macro Definition Documentation

◆ VERIFY_BITS

#define VERIFY_BITS ( x,
n )
Value:
VERIFY_CHECK(((x) >> (n)) == 0)
#define VERIFY_CHECK(cond)
Definition util.h:159

Definition at line 15 of file field_5x52_int128_impl.h.

◆ VERIFY_BITS_128

#define VERIFY_BITS_128 ( x,
n )
Value:
static SECP256K1_INLINE int secp256k1_u128_check_bits(const secp256k1_uint128 *r, unsigned int n)

Definition at line 16 of file field_5x52_int128_impl.h.

Function Documentation

◆ secp256k1_fe_mul_inner()

SECP256K1_INLINE void secp256k1_fe_mul_inner ( uint64_t * r,
const uint64_t * a,
const uint64_t *SECP256K1_RESTRICT b )
static

Definition at line 18 of file field_5x52_int128_impl.h.

Here is the call graph for this function:

◆ secp256k1_fe_sqr_inner()

SECP256K1_INLINE void secp256k1_fe_sqr_inner ( uint64_t * r,
const uint64_t * a )
static

[... a b c] is a shorthand for ... + a<<104 + b<<52 + c<<0 mod n. px is a shorthand for sum(a[i]*a[x-i], i=0..x). Note that [x 0 0 0 0 0] = [x*R].

Definition at line 154 of file field_5x52_int128_impl.h.

Here is the call graph for this function: