#include <iostream>
#include <givaro/givzpz64std.h>
#include <givaro/givzpz.h>
#include <givaro/givgfq.h>
#include <givaro/givmontg32.h>
#include <givaro/givgfqext.h>
using namespace Givaro;
template<class Field>
std::cerr << "Within " ;
std::cerr << " : " << std::flush;
F.
write( std::cout, a) <<
" + " << std::flush;
F.
write( std::cout, b) <<
" = " << std::flush;
F.
write( std::cerr, c) << std::endl;
F.
write( std::cerr <<
"Within " ) <<
" : " << std::flush;
std::cout, c) << " + ", a) << " * ", b) << " = ", d) << std::endl;
{
F.
write( std::cerr <<
"Within " ) <<
" : " << std::flush;
std::cout, d) << " - ", a) << " * ", b) << " = ", e) << std::endl;
}
{
F.
write( std::cerr <<
"Within " ) <<
" : " << std::flush;
std::cout, d) << " - ", a) << " * ", b) << " = ", e) << std::endl;
}
{
F.
write( std::cerr <<
"Within " ) <<
" : " << std::flush;
std::cout, a) << " * ", b) << " - ", d) << " = ", e) << std::endl;
}
{
F.
write( std::cerr <<
"Within " ) <<
" : " << std::flush;
std::cout, d) << " - ", a) << " * ", b) << " = ", e) << std::endl;
}
F.
write( F.
write( std::cout, a) <<
" += ", b) <<
" is " ;
F.
write( F.
write( std::cout, a) <<
" -= ", b) <<
" is ";
F.
write( F.
write( std::cout, a) <<
" *= ", b) <<
" is " ;
F.
write( F.
write( std::cout, a) <<
" /= ", b) <<
" is ";
F.
write( F.
write( std::cout <<
"1/", a) <<
" is ", b) << std::endl;
F.
write( std::cout <<
"1 is ", c) << std::endl;
F.
write( std::cout <<
"1/", a) <<
" is ";
F.
write( std::cout, a) << std::endl;
F.
write( std::cout <<
"1 is ", a) << std::endl;
F.
write( F.
write( std::cout <<
"1/", a) <<
" is ", b) << std::endl;
F.
write( std::cout <<
"1 is ", c) << std::endl;
F.
write( std::cout <<
"1/", a) <<
" is ";
F.
write( std::cout, a) << std::endl;
F.
write( std::cout <<
"1 is ", a) << std::endl;
}
extern "C" {
# include <sys/time.h>
# include <sys/resource.h>
}
int main(
int argc,
char ** argv) {
#ifdef __USE_Givaro_SIXTYFOUR__
#endif
std::vector< GFqDom<long>::Residu_t > Irred(9);
Irred[0] = 1; Irred[1] = 1; Irred[2] = 0; Irred[3] = 1;
Irred[4] = 1; Irred[5] = 0; Irred[6] = 0; Irred[7] = 0;
Irred[8] = 1;
struct rusage tmp1 ;
getrusage (RUSAGE_SELF, &tmp1) ;
double tim = (double) tmp1.ru_utime.tv_sec + ((double) tmp1.ru_utime.tv_usec)/ ( 1000000.0 ) ;
;
#ifndef __GIVARO__DONOTUSE_longlong__
#else
#endif
getrusage (RUSAGE_SELF, &tmp1) ;
tim = (double) tmp1.ru_utime.tv_sec + ((double) tmp1.ru_utime.tv_usec)/ (1000000.0) - tim;
std::cerr << "Initialization took " << tim << " cpu seconds and : " << std::endl;
std::cerr
<< tmp1.ru_maxrss << " maximum resident set size"<< std::endl
<< tmp1.ru_ixrss << " integral shared memory size"<< std::endl
<< tmp1.ru_idrss << " integral unshared data size"<< std::endl
<< tmp1.ru_isrss << " integral unshared stack size"<< std::endl
<< tmp1.ru_minflt << " page reclaims"<< std::endl
<< tmp1.ru_majflt << " page faults"<< std::endl
<< tmp1.ru_nswap << " swaps"<< std::endl
<< tmp1.ru_inblock << " block input operations"<< std::endl
<< tmp1.ru_oublock << " block output operations"<< std::endl;
return 0;
}