mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
Removed bad asm call for rdts. Need to fix this...
Original commit message from CVS: Removed bad asm call for rdts. Need to fix this...
This commit is contained in:
parent
daf7640e76
commit
53be55b62e
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <gst/gsttrace.h>
|
#include <gst/gsttrace.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_RDTS
|
||||||
__inline__ void read_tsc(guint64 *dst) {
|
__inline__ void read_tsc(guint64 *dst) {
|
||||||
__asm__ __volatile__
|
__asm__ __volatile__
|
||||||
("rdtsc"
|
("rdtsc"
|
||||||
|
@ -34,6 +35,10 @@ __inline__ void read_tsc(guint64 *dst) {
|
||||||
:
|
:
|
||||||
: "eax", "edx");
|
: "eax", "edx");
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
__inline__ void read_tsc(guint64 *dst) {
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void gst_trace_read_tsc(guint64 *dst) {
|
void gst_trace_read_tsc(guint64 *dst) {
|
||||||
read_tsc(dst);
|
read_tsc(dst);
|
||||||
|
|
Loading…
Reference in a new issue