MCPcopy Create free account
hub / github.com/ElementsProject/elements / Sqr

Method Sqr

src/minisketch/src/fields/generic_common_impl.h:40–40  ·  view source on GitHub ↗

Compute the square of a. */

Source from the content-addressed store, hash-verified

38
39 /** Compute the square of a. */
40 inline constexpr Elem Sqr(Elem a) const { return SQR->template Map<O>(a); }
41
42 /** Compute x such that x^2 + x = a (undefined result if no solution exists). */
43 inline constexpr Elem Qrt(Elem a) const { return QRT->template Map<O>(a); }

Callers 4

SqrFunction · 0.45
RecFindRootsFunction · 0.45
ReconstructAllSyndromesFunction · 0.45
AddToOddSyndromesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected