Givaro 4.2.1
test-modularmulprecomp.C File Reference
#include <iostream>
#include <givaro/modular.h>
#include <givaro/givinteger.h>

Macros

#define TESTE_EG(a, b)
 
#define NBITER   100
 
#define JETESTE(F, x, y)
 

Functions

template<class Ring>
int TestOneMulPrecomp (const Ring &F, const typename Ring::Element &x, const typename Ring::Element &y)
 
template<class Ring>
int TestMulPrecomp (const Ring &F, const uint64_t seed)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ TESTE_EG

#define TESTE_EG ( a,
b )
Value:
if (!F.areEqual((a),(b))) { \
F.write( F.write(std::cout,a) << "!=",b) \
<< " failed (at line " << __LINE__ << ")" << std::endl; \
throw std::string( "Message d'erreur" ); \
return -1; \
}

◆ NBITER

#define NBITER   100

◆ JETESTE

#define JETESTE ( F,
x,
y )
Value:
if (TestOneMulPrecomp(F,x,y)) { \
std::cout << #x << " " << #y << " failed !" << std::endl; \
return -1; \
}
int TestOneMulPrecomp(const Ring &F, const typename Ring::Element &x, const typename Ring::Element &y)
Definition test-modularmulprecomp.C:25

Function Documentation

◆ TestOneMulPrecomp()

template<class Ring>
int TestOneMulPrecomp ( const Ring & F,
const typename Ring::Element & x,
const typename Ring::Element & y )

◆ TestMulPrecomp()

template<class Ring>
int TestMulPrecomp ( const Ring & F,
const uint64_t seed )

◆ main()

int main ( int argc,
char ** argv )