Wire Sysio Wire Sysion 1.0.0
|
#include "modinv64_impl.h"
Go to the source code of this file.
Macros | |
#define | SECP256K1_N_0 ((uint64_t)0xBFD25E8CD0364141ULL) |
#define | SECP256K1_N_1 ((uint64_t)0xBAAEDCE6AF48A03BULL) |
#define | SECP256K1_N_2 ((uint64_t)0xFFFFFFFFFFFFFFFEULL) |
#define | SECP256K1_N_3 ((uint64_t)0xFFFFFFFFFFFFFFFFULL) |
#define | SECP256K1_N_C_0 (~SECP256K1_N_0 + 1) |
#define | SECP256K1_N_C_1 (~SECP256K1_N_1) |
#define | SECP256K1_N_C_2 (1) |
#define | SECP256K1_N_H_0 ((uint64_t)0xDFE92F46681B20A0ULL) |
#define | SECP256K1_N_H_1 ((uint64_t)0x5D576E7357A4501DULL) |
#define | SECP256K1_N_H_2 ((uint64_t)0xFFFFFFFFFFFFFFFFULL) |
#define | SECP256K1_N_H_3 ((uint64_t)0x7FFFFFFFFFFFFFFFULL) |
#define | muladd(a, b) |
#define | muladd_fast(a, b) |
#define | sumadd(a) |
#define | sumadd_fast(a) |
#define | extract(n) |
#define | extract_fast(n) |
#define extract | ( | n | ) |
Extract the lowest 64 bits of (c0,c1,c2) into n, and left shift the number 64 bits.
Definition at line 235 of file scalar_4x64_impl.h.
#define extract_fast | ( | n | ) |
Extract the lowest 64 bits of (c0,c1,c2) into n, and left shift the number 64 bits. c2 is required to be zero.
Definition at line 243 of file scalar_4x64_impl.h.
#define muladd | ( | a, | |
b ) |
Add a*b to the number defined by (c0,c1,c2). c2 must never overflow.
Definition at line 189 of file scalar_4x64_impl.h.
#define muladd_fast | ( | a, | |
b ) |
Add a*b to the number defined by (c0,c1). c1 must never overflow.
Definition at line 204 of file scalar_4x64_impl.h.
#define SECP256K1_N_0 ((uint64_t)0xBFD25E8CD0364141ULL) |
Definition at line 13 of file scalar_4x64_impl.h.
#define SECP256K1_N_1 ((uint64_t)0xBAAEDCE6AF48A03BULL) |
Definition at line 14 of file scalar_4x64_impl.h.
#define SECP256K1_N_2 ((uint64_t)0xFFFFFFFFFFFFFFFEULL) |
Definition at line 15 of file scalar_4x64_impl.h.
#define SECP256K1_N_3 ((uint64_t)0xFFFFFFFFFFFFFFFFULL) |
Definition at line 16 of file scalar_4x64_impl.h.
#define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1) |
Definition at line 19 of file scalar_4x64_impl.h.
#define SECP256K1_N_C_1 (~SECP256K1_N_1) |
Definition at line 20 of file scalar_4x64_impl.h.
#define SECP256K1_N_C_2 (1) |
Definition at line 21 of file scalar_4x64_impl.h.
#define SECP256K1_N_H_0 ((uint64_t)0xDFE92F46681B20A0ULL) |
Definition at line 24 of file scalar_4x64_impl.h.
#define SECP256K1_N_H_1 ((uint64_t)0x5D576E7357A4501DULL) |
Definition at line 25 of file scalar_4x64_impl.h.
#define SECP256K1_N_H_2 ((uint64_t)0xFFFFFFFFFFFFFFFFULL) |
Definition at line 26 of file scalar_4x64_impl.h.
#define SECP256K1_N_H_3 ((uint64_t)0x7FFFFFFFFFFFFFFFULL) |
Definition at line 27 of file scalar_4x64_impl.h.
#define sumadd | ( | a | ) |
Add a to the number defined by (c0,c1,c2). c2 must never overflow.
Definition at line 218 of file scalar_4x64_impl.h.
#define sumadd_fast | ( | a | ) |
Add a to the number defined by (c0,c1). c1 must never overflow, c2 must be zero.
Definition at line 227 of file scalar_4x64_impl.h.