From 1b1ba4b2f4766e503a5072c46402689e7474cb25 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 10 Apr 2009 01:34:48 +0000 Subject: high 32-bits of the result of rpcc is undefined. should fix ev5 benchmarking git-svn-id: svn://mattst88.com/svn/cpml-benchmarks@2 dfcbb71e-afff-4d4a-b3c7-756acd92cddf --- math.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'math.c') diff --git a/math.c b/math.c index d6fc798..3c99e51 100644 --- a/math.c +++ b/math.c @@ -31,7 +31,7 @@ int main(int argc, char * argv[]) { int i; int iterations; - uint64_t start, end; + uint32_t start, end; start = __rpcc(); @@ -49,8 +49,7 @@ int main(int argc, char * argv[]) { } } -/* printf("%5s\t%5s\t%lu\n", LIB_NAME, FUNCTION_NAME, (end - start) / 30);*/ - printf("%lu,", (end - start) / iterations); + printf("%u,", (end - start) / iterations); return 0; } -- cgit v1.2.3