OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src-c/] [dhrystone_v2.1/] [original_files/] [pure2_1.dif] - Blame information for rev 145

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.