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 |
#include "longlong.h" |
#include "longlong.h" |
27 |
|
|
28 |
#if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux) |
int mpn_print (mp_ptr p, mp_size_t size); |
29 |
|
|
30 |
|
#if defined (USG) || defined (__SVR4) || defined (_UNICOS) || defined (__hpux) || (defined(__DECC) && defined(__VMS)) |
31 |
#include <time.h> |
#include <time.h> |
32 |
|
|
33 |
int |
int |
73 |
#define CLOCK (50 M) |
#define CLOCK (50 M) |
74 |
#elif defined (__alpha) |
#elif defined (__alpha) |
75 |
#define CLOCK (133 M) |
#define CLOCK (133 M) |
76 |
|
#elif defined (__vax) |
77 |
|
#define CLOCK (40 M) |
78 |
#else |
#else |
79 |
#error "Don't know CLOCK of your machine" |
#error "Don't know CLOCK of your machine" |
80 |
#endif |
#endif |
141 |
mp_limb_t xlimb; |
mp_limb_t xlimb; |
142 |
mp_size_t size; |
mp_size_t size; |
143 |
double cyc; |
double cyc; |
144 |
|
int clock_mhz; |
145 |
|
|
146 |
|
clock_mhz = CLOCK / 1000000; |
147 |
|
printf("\r\nTest Times Are Based On A CPU Clock Speed Of %dMHz.\r\n\r\n",clock_mhz); |
148 |
|
|
149 |
for (test = 0; ; test++) |
for (test = 0; ; test++) |
150 |
{ |
{ |