diff options
-rw-r--r-- | dxr3memcpy.c | 7 | ||||
-rw-r--r-- | 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<memcpy_routine> m_methods; }; |