summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-07-09 02:21:28 +0200
committerMartin Storsjö <martin@martin.st>2012-07-10 14:33:32 +0300
commit358d854df80e035c9d47bae21492b51b406dbe68 (patch)
tree6abb1927a4d953cc3fc4c2a2160638e819a19ef5 /configure
parentc0ee695bd7b278f83252c9f93803b107d7aa1e9a (diff)
x86/cpu: implement get/set_eflags using intrinsics
Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 0f51523ac6..ffb1e7e667 100755
--- a/configure
+++ b/configure
@@ -1126,6 +1126,7 @@ HAVE_LIST="
rdtsc
round
roundf
+ rweflags
sched_getaffinity
sdl
sdl_video_size
@@ -2747,6 +2748,7 @@ elif enabled x86; then
check_code ld immintrin.h "__xgetbv(0)" && enable xgetbv
check_code ld intrin.h "int info[4]; __cpuid(info, 0)" && enable cpuid
check_code ld intrin.h "__rdtsc()" && enable rdtsc
+ check_code ld intrin.h "unsigned int x = __readeflags()" && enable rweflags
check_code ld mmintrin.h "_mm_empty()" && enable mm_empty