From c5bc3217189fa255ebefd183489d2a3da785d9ee Mon Sep 17 00:00:00 2001 From: austriancoder Date: Tue, 24 Aug 2004 20:49:15 +0000 Subject: gcc 2.95 fix --- dxr3memcpy.c | 7 +++---- dxr3memcpy.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dxr3memcpy.c b/dxr3memcpy.c index 3a545f3..95a5cfc 100644 --- a/dxr3memcpy.c +++ b/dxr3memcpy.c @@ -408,13 +408,13 @@ cDxr3MemcpyBench::cDxr3MemcpyBench(uint32_t config_flags) } // count 100 runs of the memcpy function - t = rdtsc(); + t = Rdtsc(); for (j = 0; j < 50; j++) { m_methods[i].function(buf2,buf1,BUFSIZE); m_methods[i].function(buf1,buf2,BUFSIZE); } - t = rdtsc() - t; + t = Rdtsc() - t; m_methods[i].time = t; @@ -435,10 +435,9 @@ cDxr3MemcpyBench::cDxr3MemcpyBench(uint32_t config_flags) free(buf2); } - // ================================== // neede for exact timing -unsigned long long int cDxr3MemcpyBench::rdtsc() +unsigned long long int cDxr3MemcpyBench::Rdtsc() { // #ifdef ARCH_X86 unsigned long long int x; diff --git a/dxr3memcpy.h b/dxr3memcpy.h index e360b32..50d7581 100644 --- a/dxr3memcpy.h +++ b/dxr3memcpy.h @@ -88,7 +88,7 @@ public: cDxr3MemcpyBench(uint32_t config_flags = 0); private: - unsigned long long int rdtsc(); + unsigned long long int Rdtsc(); vector m_methods; }; -- cgit v1.2.3