linbox  1
Static Protected Member Functions
Local2_32 Struct Reference

Fast arithmetic mod 2^32, including gcd. More...

#include <local2_32.h>

Inherits UnparametricField< K >.

List of all members.

Static Protected Member Functions

static Element & HGCD (Element &g, Element &s, const Element &a, const Element &b)
 Half GCD g = gcd (a, b). exists t, such that: s * a + t * b = g. return g.

Detailed Description

Fast arithmetic mod 2^32, including gcd.

Extend UnparametricField<uint32> which is a representation of Z_2^32. It is especially fast because it uses hardware arithmetic directly. This ring is a Local Principal Ideal Ring.

These needed PIR functions are added: gcdin(), isUnit(), also inv() is modified to work correctly. The type Exponent is added: more effective rep of the powers of 2, which are important because gcds are powers of 2). This entails some new versions of divin(), mulin(), isUnit().

Those are the function needed for the LocalSmith algorithm. Further appropriate PIR functions may be added later.


The documentation for this struct was generated from the following file: