150{
151
152 Modular<int16_t> C13(13);
154
155 Modular<int32_t> Z13(13);
157
158 Modular<uint32_t> U13(13);
160#ifdef __USE_Givaro_SIXTYFOUR__
161
162 Modular<int64_t> LL13(13U);
164#endif
165
166 Modular<Log16> L13(13);
168
169 Montgomery<int32_t> M13(13);
171 Montgomery<int32_t> M3(39989);
173
174 GFqDom<int> GF13(13);
176
177 Modular<Integer> IntZ13(13);
179
180 GFqDom<int> GF625(5, 4);
182#if 0
183
184
185 std::vector<GFqDom<unsigned long long>::Residu_t> Irred(9);
186 Irred[0] = 1;
187 Irred[1] = 1;
188 Irred[2] = 0;
189 Irred[3] = 1;
190 Irred[4] = 1;
191 Irred[5] = 0;
192 Irred[6] = 0;
193 Irred[7] = 0;
194 Irred[8] = 1;
195 GFqDom<unsigned long long> F256(2, 8, Irred);
197#endif
198
199
200 GFqExt<int32_t> GF81(3, 4);
202
203 struct rusage tmp1;
204 getrusage(RUSAGE_SELF, &tmp1);
205
206 double tim = (double)tmp1.ru_utime.tv_sec +
207 ((double)tmp1.ru_utime.tv_usec) / (1000000.0);
208 ;
209 getrusage(RUSAGE_SELF, &tmp1);
210 tim = (double)tmp1.ru_utime.tv_sec +
211 ((double)tmp1.ru_utime.tv_usec) / (1000000.0) - tim;
212 std::cerr << "Initialization took " << tim
213 << " cpu seconds and : " << std::endl;
214 std::cerr << tmp1.ru_maxrss << " maximum resident set size" << std::endl
215 << tmp1.ru_ixrss << " integral shared memory size" << std::endl
216 << tmp1.ru_idrss << " integral unshared data size" << std::endl
217 << tmp1.ru_isrss << " integral unshared stack size" << std::endl
218 << tmp1.ru_minflt << " page reclaims" << std::endl
219 << tmp1.ru_majflt << " page faults" << std::endl
220 << tmp1.ru_nswap << " swaps" << std::endl
221 << tmp1.ru_inblock << " block input operations" << std::endl
222 << tmp1.ru_oublock << " block output operations" << std::endl;
223 return 0;
224}
void TestField(const Field &F)