Removed bad asm call for rdts. Need to fix this...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 18 Aug 2000 22:15:58 +0000 (22:15 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 18 Aug 2000 22:15:58 +0000 (22:15 +0000)
Original commit message from CVS:
Removed bad asm call for rdts. Need to fix this...

gst/gsttrace.c

index cbb5dcb..0f53cb8 100644 (file)
@@ -27,6 +27,7 @@
 #include <glib.h>
 #include <gst/gsttrace.h>
 
+#ifdef HAVE_RDTS
 __inline__ void read_tsc(guint64 *dst) {
   __asm__ __volatile__
     ("rdtsc"
@@ -34,6 +35,10 @@ __inline__ void read_tsc(guint64 *dst) {
      :
      : "eax", "edx");
 }
+#else
+__inline__ void read_tsc(guint64 *dst) {
+}
+#endif
 
 void gst_trace_read_tsc(guint64 *dst) {
   read_tsc(dst);