2 < * Version: C, Version 2.1
4 > * Version: C, Version 2.0
6 < * File: dhry.h (part 1 of 3)
8 > * File: dhry_global.h (part 1 of 3)
10 < * Date: May 25, 1988
12 > * Date: March 3, 1988
14 < * In addition, Berkeley UNIX system calls "times ()" or "time ()"
16 > * In addition, UNIX system calls "times ()" or "time ()"
18 < * Please send results to Rick Richardson and/or Reinhold Weicker.
20 > * Please send results to Reinhold Weicker and/or Rick Richardson.
22 < * History: This version C/2.1 has been made for two reasons:
24 > * History: This version C/2.0 has been made for two reasons:
26 < * Version 2.1 is identical to version 2.0 distributed via
27 < * the UNIX network Usenet in March 1988 except that it corrects
28 < * some minor deficiencies that were found by users of version 2.0.
29 < * The only change within the measurement loop is that a
30 < * non-executed "else" part was added to the "if" statement in
31 < * Func_3, and a non-executed "else" part removed from Proc_3.
35 < * In Berkeley UNIX, the function "times" returns process
36 < * time in 1/HZ seconds, with HZ = 60 for most systems.
38 > * -DHZ=nnn (default: 60)
39 > * The function "times" returns process times in
40 > * 1/HZ seconds, with HZ = 60 for most systems.
44 > * THE DEFAULT VALUE.
46 < * - dhry.h (this file, containing global definitions and comments)
47 < * - dhry_1.c (containing the code corresponding to Ada package Pack_1)
48 < * - dhry_2.c (containing the code corresponding to Ada package Pack_2)
50 > * - dhry_global.h (this file, containing global definitions and comments)
51 > * - dhry_pack_1.c (containing the code corresponding to Ada package Pack_1)
52 > * - dhry_pack_2.c (containing the code corresponding to Ada package Pack_2)
56 < /* Use times(2) time function unless */
57 < /* explicitly defined otherwise */
60 > /* Use "times" function for measurement */
61 > /* unless explicitly defined otherwise */
65 > /* Use HZ = 60 for "times" function */
66 > /* unless explicitly defined otherwise */
68 < /* Berkeley UNIX C returns process times in seconds/HZ */
70 > /* UNIX C returns process times in seconds/HZ */
72 < * Version: C, Version 2.1
74 > * Version: C, Version 2.0
76 < * File: dhry_1.c (part 2 of 3)
78 > * File: dhry_pack_1.c (part 2 of 3)
80 < * Date: May 25, 1988
82 > * Date: March 3, 1988
86 > #include "dhry_global.h"
88 < #define Too_Small_Time 120
89 < /* Measurements should last at least about 2 seconds */
100 < /* Was missing in published program. Without this statement, */
101 < /* Arr_2_Glob [8][7] would have an undefined value. */
103 > /* Was missing in published program. Without this */
104 > /* initialization, Arr_2_Glob [8][7] would have an */
105 > /* undefined value. */
107 < printf ("Dhrystone Benchmark, Version 2.1 (Language: C)\n");
109 > printf ("Dhrystone Benchmark, Version 2.0 (Language: C)\n");
111 < /******************/
113 > /**********************/
115 < /******************/
117 > /**********************/
119 > else /* not executed */
124 < * Version: C, Version 2.1
126 > * Version: C, Version 2.0
128 < * File: dhry_2.c (part 3 of 3)
130 > * File: dhry_pack_2.c (part 3 of 3)
132 < * Date: May 25, 1988
134 > * Date: March 3, 1988
138 > #include "dhry_global.h"
140 < else /* not executed */