#include <zm2.h>
Definition at line 306 of file zm2.h.
◆ bin_op
void mie::Fp::Dbl::bin_op(Dbl &z, const Dbl &x, const Dbl &y) |
◆ uni_op
void mie::Fp::Dbl::uni_op(Dbl &z, const Dbl &x) |
◆ anonymous enum
◆ Dbl() [1/3]
◆ Dbl() [2/3]
mie::Fp::Dbl::Dbl |
( |
const Fp & | x | ) |
|
|
inlineexplicit |
Definition at line 354 of file zm2.h.
355 {
356 mul(*
this, x, montgomeryR2_);
357 }
static void(* mul)(Dbl &z, const Fp &x, const Fp &y)
◆ Dbl() [3/3]
mie::Fp::Dbl::Dbl |
( |
const std::string & | str | ) |
|
|
inlineexplicit |
Definition at line 358 of file zm2.h.
static MIE_FORCE_INLINE void setDirect(Dbl &out, const mie::Vuint &in)
◆ clear()
Definition at line 332 of file zm2.h.
333 {
334 std::fill(v_, v_ +
N * 2, 0);
335 }
◆ compare()
static int mie::Fp::Dbl::compare |
( |
const Dbl & | x, |
|
|
const Dbl & | y ) |
|
inlinestatic |
Definition at line 360 of file zm2.h.
361 {
363 }
static int compare(const Unit *x, size_t xn, const Unit *y, size_t yn)
◆ const_ptr()
const Unit * mie::Fp::Dbl::const_ptr |
( |
| ) |
const |
|
inline |
◆ getDirect()
Definition at line 339 of file zm2.h.
VuintT< local::FixedBuffer< mie::Unit, MIE_ZM_VUINT_BIT_LEN > > Vuint
◆ operator[]() [1/2]
◆ operator[]() [2/2]
◆ ptr()
Unit * mie::Fp::Dbl::ptr |
( |
| ) |
|
|
inline |
◆ setDirect() [1/3]
void mie::Fp::Dbl::setDirect |
( |
const T & | in | ) |
|
|
inline |
◆ setDirect() [2/3]
Definition at line 312 of file zm2.h.
313 {
314 const size_t n = in.size();
316 std::copy(&in[0], &in[0] + n, out.v_);
317 std::fill(out.v_ + n, out.v_ +
N * 2, 0);
318 } else {
319
320 std::copy(&in[0], &in[0] +
N * 2, out.v_);
321 }
322 }
◆ setDirect() [3/3]
◆ size()
◆ subOpt1()
static void mie::Fp::Dbl::subOpt1 |
( |
Dbl & | z, |
|
|
const Dbl & | x, |
|
|
const Dbl & | y ) |
|
inlinestatic |
Definition at line 382 of file zm2.h.
383 {
384 assert(&z != &x);
385 assert(&z != &y);
388 }
◆ toString()
std::string mie::Fp::Dbl::toString |
( |
int | base = 10 | ) |
const |
|
inline |
Definition at line 344 of file zm2.h.
345 {
347 }
std::string toString(int base=10) const
mie::Vuint getDirect() const
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Dbl & | x ) |
|
friend |
Definition at line 348 of file zm2.h.
349 {
350 return os << x.toString(
os.flags() & std::ios_base::hex ? 16 : 10);
351 }
◆ add
FpDbl::bin_op * FpDbl::add = &FpDbl_addC |
|
static |
◆ addNC
FpDbl::bin_op * FpDbl::addNC = &FpDbl_addNC_C |
|
static |
◆ mod
void(* FpDbl::mod)(Fp &, const Dbl &) = &FpDbl_modC |
|
static |
◆ mul
void(* FpDbl::mul)(Dbl &, const Fp &, const Fp &) = &FpDbl_mulC |
|
static |
◆ neg
FpDbl::uni_op * FpDbl::neg = &FpDbl_negC |
|
static |
◆ pNTbl_
◆ sub
FpDbl::bin_op * FpDbl::sub = &FpDbl_subC |
|
static |
◆ subNC
FpDbl::bin_op * FpDbl::subNC = &FpDbl_subNC_C |
|
static |
The documentation for this struct was generated from the following files:
- libraries/fc/libraries/ff/depends/ate-pairing/include/zm2.h
- libraries/fc/libraries/ff/depends/ate-pairing/src/zm2.cpp