Givaro
Defines | Functions
test-mod.C File Reference
#include <iostream>
#include <givaro/givinteger.h>
#include <cmath>
#include <cassert>

Defines

#define SONT_EQ(a, b)
#define NB_ITERS   40

Functions

template<class U >
bool IsNeg (const U p)
template<>
bool IsNeg< unsigned long > (const unsigned long p)
template<class T , class U >
long int ref_modulo (const T m, const U p)
template<class T , class U >
long int ref_modulobis (const T m, const U p)
template<class T , class U >
int test1 (const T m, const U p)
template<class T , class U >
int test1bis (const T m, const U p)
int test2 (Integer &M, Integer &P)
int test2bis (Integer &M, Integer &P)
template<class T , class U >
int test3 (const T m, const U p)
int main ()

Define Documentation

#define SONT_EQ (   a,
 
)
Value:
if ( (a) != (b) ) { \
        std::cout << "erreur à la ligne " << __LINE__ << std::endl; \
        std::cout << a << "!=" << b << std::endl; \
        return -1 ; \
    }
#define NB_ITERS   40

Function Documentation

bool IsNeg ( const U  p) [inline]
bool IsNeg< unsigned long > ( const unsigned long  p) [inline]
long int ref_modulo ( const T  m,
const U  p 
)
long int ref_modulobis ( const T  m,
const U  p 
)
int test1 ( const T  m,
const U  p 
)
int test1bis ( const T  m,
const U  p 
)
int test2 ( Integer M,
Integer P 
)

Todo:
existe pas !

int test2bis ( Integer M,
Integer P 
)
int test3 ( const T  m,
const U  p 
)
int main ( )