hp-timing-2.23+.patch 879 B

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. @@ -19,22 +19,5 @@
  6. #ifndef _HP_TIMING_H
  7. -#define _HP_TIMING_H 1
  8. -
  9. -/* We always assume having the timestamp register. */
  10. -#define HP_TIMING_AVAIL (1)
  11. -#define HP_SMALL_TIMING_AVAIL (1)
  12. -
  13. -/* We indeed have inlined functions. */
  14. -#define HP_TIMING_INLINE (1)
  15. -
  16. -/* We use 64bit values for the times. */
  17. -typedef unsigned long long int hp_timing_t;
  18. -
  19. -/* The "=A" constraint used in 32-bit mode does not work in 64-bit mode. */
  20. -#define HP_TIMING_NOW(Var) \
  21. - ({ unsigned int _hi, _lo; \
  22. - asm volatile ("rdtsc" : "=a" (_lo), "=d" (_hi)); \
  23. - (Var) = ((unsigned long long int) _hi << 32) | _lo; })
  24. -
  25. -#include <hp-timing-common.h>
  26. +
  27. +#include <sysdeps/generic/hp-timing.h>
  28. #endif /* hp-timing.h */