|
| | Local2_32 (int p=2, int exp=32) |
| |
| Element & | gcd (Element &c, const Element &a, const Element &b) const |
| |
| Element & | gcdin (Element &b, const Element &a) const |
| |
| Exponent & | gcdin (Exponent &k, const Element &b) const |
| |
| bool | isUnit (const Element &a) const |
| |
| bool | isUnit (const Exponent &a) const |
| |
| bool | isZero (const Element &a) const |
| |
| bool | isZero (const Exponent &a) const |
| |
| Element & | mulin (Element &a, const Exponent &k) const |
| |
| Element & | mulin (Element &a, const Element &b) const |
| |
| Element & | axpyin (Element &r, const Element &x, const Element &y) const |
| |
| Element & | divin (Element &a, const Exponent &k) const |
| |
| Element & | inv (Element &a, const Element &b) const |
| |
Fast arithmetic mod 2^32, including gcd.
Extend Givaro::ZRing<uint32_t> 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.
- Examples
- examples/smith.C.