20 |
*/ |
*/ |
21 |
|
|
22 |
#include <stdio.h> |
#include <stdio.h> |
23 |
|
#include <stdlib.h> |
24 |
#include "gmp.h" |
#include "gmp.h" |
25 |
#include "gmp-impl.h" |
#include "gmp-impl.h" |
26 |
|
|
27 |
#if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux) |
#if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux) || (defined(__DECC) && defined(__VMS)) |
28 |
#include <time.h> |
#include <time.h> |
29 |
|
|
30 |
int |
int |
70 |
#define CLOCK (50 M) |
#define CLOCK (50 M) |
71 |
#elif defined (__alpha) |
#elif defined (__alpha) |
72 |
#define CLOCK (133 M) |
#define CLOCK (133 M) |
73 |
|
#elif defined (__vax) |
74 |
|
#define CLOCK (40 M) |
75 |
#else |
#else |
76 |
#error "Don't know CLOCK of your machine" |
#error "Don't know CLOCK of your machine" |
77 |
#endif |
#endif |
100 |
mp_size_t nsize, dsize, qsize, rsize, psize; |
mp_size_t nsize, dsize, qsize, rsize, psize; |
101 |
int test; |
int test; |
102 |
mp_limb_t qlimb; |
mp_limb_t qlimb; |
103 |
|
int clock_mhz; |
104 |
|
|
105 |
|
clock_mhz = CLOCK / 1000000; |
106 |
|
printf("\r\nTest Times Are Based On A CPU Clock Speed Of %dMHz.\r\n\r\n",clock_mhz); |
107 |
|
|
108 |
for (test = 0; ; test++) |
for (test = 0; ; test++) |
109 |
{ |
{ |