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

Macros

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

Functions

template<class U>
bool IsNeg (const U p)
 
template<>
bool IsNeg< uint64_t > (const uint64_t p)
 
template<class T, class U>
int64_t ref_modulo (const T m, const U p)
 
template<class T, class U>
int64_t 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 ()
 

Macro Definition Documentation

◆ AREEQUALVALUES

#define AREEQUALVALUES ( a,
b )
Value:
if ( (a) != (b) ) { \
std::cout << "*** ERROR line " << __LINE__ << std::endl; \
std::cout << a << "!=" << b << std::endl; \
return -1 ; \
}

◆ NB_ITERS

#define NB_ITERS   40

Function Documentation

◆ IsNeg()

template<class U>
bool IsNeg ( const U p)
inline

◆ IsNeg< uint64_t >()

template<>
bool IsNeg< uint64_t > ( const uint64_t p)
inline

◆ ref_modulo()

template<class T, class U>
int64_t ref_modulo ( const T m,
const U p )

◆ ref_modulobis()

template<class T, class U>
int64_t ref_modulobis ( const T m,
const U p )

◆ test1()

template<class T, class U>
int test1 ( const T m,
const U p )

◆ test1bis()

template<class T, class U>
int test1bis ( const T m,
const U p )

◆ test2()

int test2 ( Integer & M,
Integer & P )
Todo
existe pas !

◆ test2bis()

int test2bis ( Integer & M,
Integer & P )

◆ test3()

template<class T, class U>
int test3 ( const T m,
const U p )

◆ main()

int main ( void )