Givaro
Namespaces | Defines | Functions
gmp++_int.inl File Reference
#include <cassert>
#include <givaro/givtimer.h>

Namespaces

namespace  Givaro
 

Arithmetic on GF(p^k), with p a prime number less than 2^15.


Defines

#define GMP__ABS(l)   ((l) <0 ? -l : l)
#define GMP__SGN(l)   ((l) <0 ? -1 : (l >0 ? 1 : 0))

Functions

int operator!= (const Integer &a, const Integer &b)
int operator!= (int l, const Integer &n)
int operator!= (long l, const Integer &n)
int operator!= (unsigned long l, const Integer &n)
int operator== (const Integer &a, const Integer &b)
int operator== (int l, const Integer &n)
int operator== (long l, const Integer &n)
int operator== (unsigned long l, const Integer &n)
int operator== (const Integer &n, unsigned long l)
int operator== (const Integer &n, int l)
int operator== (const Integer &n, long l)
int operator< (const Integer &a, const Integer &b)
int operator< (const int l, const Integer &n)
int operator< (const long l, const Integer &n)
int operator< (const unsigned long l, const Integer &n)
int operator<= (const Integer &n, unsigned long l)
int operator<= (unsigned long l, const Integer &n)
int operator>= (unsigned long l, const Integer &n)
int operator>= (const Integer &n, unsigned long l)
int operator> (int l, const Integer &n)
int operator> (long l, const Integer &n)
int operator> (unsigned long l, const Integer &n)
int operator> (const Integer &a, const Integer &b)
int operator<= (const Integer &a, const Integer &b)
int operator<= (const Integer &n, int l)
int operator<= (const Integer &n, long l)
int operator<= (int l, const Integer &n)
int operator<= (long l, const Integer &n)
int operator>= (const Integer &a, const Integer &b)
int operator>= (int l, const Integer &n)
int operator>= (long l, const Integer &n)
int operator>= (const Integer &n, int l)
int operator>= (const Integer &n, long l)
Integer operator+ (const int l, const Integer &n)
Integer operator+ (const unsigned int l, const Integer &n)
Integer operator+ (const long l, const Integer &n)
Integer operator+ (const unsigned long l, const Integer &n)
Integer operator+ (const Integer &n, const int l)
Integer operator+ (const Integer &n, const unsigned int l)
Integer & operator+= (Integer &n, const int l)
Integer & operator+= (Integer &n, const unsigned int l)
Integer operator- (const int l, const Integer &n)
Integer operator- (const unsigned int l, const Integer &n)
Integer operator- (const long l, const Integer &n)
Integer operator- (const unsigned long l, const Integer &n)
Integer operator- (const Integer &n, const int l)
Integer operator- (const Integer &n, const unsigned int l)
Integer & operator-= (Integer &n, const int l)
Integer & operator-= (Integer &n, const unsigned int l)
Integer operator* (const int l, const Integer &n)
Integer operator* (const unsigned int l, const Integer &n)
Integer operator* (const long l, const Integer &n)
Integer operator* (const unsigned long l, const Integer &n)
Integer operator* (const Integer &n, const int l)
Integer operator* (const Integer &n, const unsigned int l)
Integer & operator*= (Integer &n, const int l)
Integer & operator*= (Integer &n, const unsigned int l)
Integer operator/ (const int l, const Integer &n)
Integer operator/ (const long l, const Integer &n)
Integer operator/ (const Integer &n, const int l)
Integer operator/ (const Integer &n, const unsigned int l)
Integer & operator/= (Integer &n, const int l)
Integer & operator/= (Integer &n, const long l)
Integer & operator/= (Integer &n, const unsigned int l)
Integer operator% (const int l, const Integer &n)
Integer operator% (const long l, const Integer &n)
Integer operator% (const Integer &n, const int l)
Integer operator% (const Integer &n, const unsigned int l)
Integer & operator%= (Integer &n, const int l)
Integer & operator%= (Integer &n, const unsigned int l)
int isOne (const Integer &a)
int isZero (const Integer &a)
int isZero (const short int a)
int isZero (const int a)
int isZero (const long a)
int isZero (const unsigned short int a)
int isZero (const unsigned int a)
int isZero (const unsigned long a)
int sign (const Integer &a)
unsigned long length (const Integer &a)
Integer abs (const Integer &n)
std::ostream & operator<< (std::ostream &o, const Integer &n)

Define Documentation

#define GMP__ABS (   l)    ((l) <0 ? -l : l)
#define GMP__SGN (   l)    ((l) <0 ? -1 : (l >0 ? 1 : 0))