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