summaryrefslogtreecommitdiff
path: root/www/amaya/patches/patch-am
blob: d81d1d25199e1fb65fd46c4ff28b6f6245f7e555 (plain)
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
$NetBSD: patch-am,v 1.3 2011/07/02 22:19:30 dholland Exp $

- LP64 fixes

--- Amaya/thotlib/base/testcase.c~	2007-04-25 03:25:54.000000000 -0400
+++ Amaya/thotlib/base/testcase.c	2008-09-08 05:34:11.000000000 -0400
@@ -208,9 +208,9 @@ void TtaStopBenchmarkTimer( int bench_id
   FILE *fp = g_benchmark_timer[bench_id].fp;
   if (fp)
     {
-      fprintf (fp, "[%s] Stop timer\tElapsed time=%ld ms.\n",
+      fprintf (fp, "[%s] Stop timer\tElapsed time=%u ms.\n",
 	       g_benchmark_timer[bench_id].name,
-	       (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)/(CLOCKS_PER_SEC/1000));
+	       (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)*1000/CLOCKS_PER_SEC);
       TtaWriteClose(fp);
     }
 
@@ -236,10 +236,10 @@ void TtaSetBenchmarkMark( int bench_id, 
   FILE *fp = g_benchmark_timer[bench_id].fp;
   if (fp)
     {
-      fprintf (fp, "[%s] %s\tElapsed time=%ld ms\tDelta time=%ld ms.\n",
+      fprintf (fp, "[%s] %s\tElapsed time=%u ms\tDelta time=%u ms.\n",
 	       g_benchmark_timer[bench_id].name,
 	       mark_name,
-	       (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)/(CLOCKS_PER_SEC/1000),
-	       (g_benchmark_timer[bench_id].time-last_time)/(CLOCKS_PER_SEC/1000));
+	       (g_benchmark_timer[bench_id].time-g_benchmark_timer[bench_id].start_time)*1000/CLOCKS_PER_SEC,
+	       (g_benchmark_timer[bench_id].time-last_time)*1000/CLOCKS_PER_SEC);
     }
 }