hp-timing-2.19.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. diff --git a/sysdeps/x86_64/hp-timing.h b/sysdeps/x86_64/hp-timing.h
  2. index d88206c..886c500 100644
  3. --- a/sysdeps/x86_64/hp-timing.h
  4. +++ b/sysdeps/x86_64/hp-timing.h
  5. @@ -18,23 +18,6 @@
  6. #ifndef _HP_TIMING_H
  7. -/* We can use some of the i686 implementation without changes. */
  8. -# include <sysdeps/i386/i686/hp-timing.h>
  9. -
  10. -/* The "=A" constraint used in 32-bit mode does not work in 64-bit mode. */
  11. -# undef HP_TIMING_NOW
  12. -# define HP_TIMING_NOW(Var) \
  13. - ({ unsigned int _hi, _lo; \
  14. - asm volatile ("rdtsc" : "=a" (_lo), "=d" (_hi)); \
  15. - (Var) = ((unsigned long long int) _hi << 32) | _lo; })
  16. -
  17. -/* The funny business for 32-bit mode is not required here. */
  18. -# undef HP_TIMING_ACCUM
  19. -# define HP_TIMING_ACCUM(Sum, Diff) \
  20. - do { \
  21. - hp_timing_t __diff = (Diff) - GLRO(dl_hp_timing_overhead); \
  22. - __asm__ __volatile__ ("lock; addq %1, %0" \
  23. - : "=m" (Sum) : "r" (__diff), "m" (Sum)); \
  24. - } while (0)
  25. +#include <sysdeps/generic/hp-timing.h>
  26. #endif /* hp-timing.h */