-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpure2_1.dif
141 lines (124 loc) · 3.51 KB
/
pure2_1.dif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
*** rer/dhry.h Sun Dec 4 00:08:26 1988
--- weicker/dhry.h Sun Dec 4 00:09:00 1988
***************
*** 38,45
* PC Research. Inc.
* 94 Apple Orchard Drive
* Tinton Falls, NJ 07724
! * Phone: (201) 389-8963 (9-17 EST)
! * Usenet: ...!uunet!pcrat!rick
*
* Please send results to Rick Richardson and/or Reinhold Weicker.
* Complete information should be given on hardware and software used.
--- 38,45 -----
* PC Research. Inc.
* 94 Apple Orchard Drive
* Tinton Falls, NJ 07724
! * Phone: (201) 834-1378 (9-17 EST)
! * Usenet: ...!seismo!uunet!pcrat!rick
*
* Please send results to Rick Richardson and/or Reinhold Weicker.
* Complete information should be given on hardware and software used.
***************
*** 348,354
/* Compiler and system dependent definitions: */
#ifndef TIME
- #undef TIMES
#define TIMES
#endif
/* Use times(2) time function unless */
--- 348,353 -----
/* Compiler and system dependent definitions: */
#ifndef TIME
#define TIMES
#endif
/* Use times(2) time function unless */
***************
*** 353,366
#endif
/* Use times(2) time function unless */
/* explicitly defined otherwise */
-
- #ifdef MSC_CLOCK
- #undef HZ
- #undef TIMES
- #include <time.h>
- #define HZ CLK_TCK
- #endif
- /* Use Microsoft C hi-res clock */
#ifdef TIMES
#include <sys/types.h>
--- 352,357 -----
#endif
/* Use times(2) time function unless */
/* explicitly defined otherwise */
#ifdef TIMES
#include <sys/types.h>
*** rer/dhry_1.c Sun Dec 4 00:08:36 1988
--- weicker/dhry_1.c Sun Dec 4 00:09:09 1988
***************
*** 47,53
struct tms time_info;
extern int times ();
/* see library function "times" */
! #define Too_Small_Time (2*HZ)
/* Measurements should last at least about 2 seconds */
#endif
#ifdef TIME
--- 47,53 -----
struct tms time_info;
extern int times ();
/* see library function "times" */
! #define Too_Small_Time 120
/* Measurements should last at least about 2 seconds */
#endif
#ifdef TIME
***************
*** 56,65
#define Too_Small_Time 2
/* Measurements should last at least 2 seconds */
#endif
- #ifdef MSC_CLOCK
- extern clock_t clock();
- #define Too_Small_Time (2*HZ)
- #endif
long Begin_Time,
End_Time,
--- 56,61 -----
#define Too_Small_Time 2
/* Measurements should last at least 2 seconds */
#endif
long Begin_Time,
End_Time,
***************
*** 139,147
#ifdef TIME
Begin_Time = time ( (long *) 0);
#endif
- #ifdef MSC_CLOCK
- Begin_Time = clock();
- #endif
for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index)
{
--- 135,140 -----
#ifdef TIME
Begin_Time = time ( (long *) 0);
#endif
for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index)
{
***************
*** 199,207
#endif
#ifdef TIME
End_Time = time ( (long *) 0);
- #endif
- #ifdef MSC_CLOCK
- End_Time = clock();
#endif
printf ("Execution ends\n");
--- 192,197 -----
#endif
#ifdef TIME
End_Time = time ( (long *) 0);
#endif
printf ("Execution ends\n");