netinet_sctp_h
poll_h
posix_memalign
+ rdtsc
round
roundf
sched_getaffinity
void foo(void) { __asm__ volatile ("" ::); }
EOF
+check_code cc intrin.h "__rdtsc()" && enable rdtsc
+
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break
#include <stdint.h>
+#if HAVE_INLINE_ASM
+
#define AV_READ_TIME read_time
static inline uint64_t read_time(void)
return ((uint64_t)d << 32) + a;
}
+#elif HAVE_RDTSC
+
+#define AV_READ_TIME __rdtsc
+
+#endif /* HAVE_INLINE_ASM */
+
#endif /* AVUTIL_X86_TIMER_H */