summaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/multiarch/sched_cpucount.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-07-31 11:53:35 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-31 11:53:35 -0700
commit6f6f1215f68e5ae15ad18373234815fe7b2acc9e (patch)
treec6ca7c84df2663d2af45a5ebb47e1cb7d181e31d /sysdeps/x86_64/multiarch/sched_cpucount.c
parent1877ea16ca0714abd715d6ce0aa1b840c3850241 (diff)
downloadglibc-6f6f1215f68e5ae15ad18373234815fe7b2acc9e.tar.gz
Support multiarch for i686.
This patch adds multiarch support when configured for i686. I modified some x86-64 functions to support 32bit. I will contribute 32bit SSE string and memory functions later.
Diffstat (limited to 'sysdeps/x86_64/multiarch/sched_cpucount.c')
-rw-r--r--sysdeps/x86_64/multiarch/sched_cpucount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/sched_cpucount.c b/sysdeps/x86_64/multiarch/sched_cpucount.c
index b6f425e948..fde6dcca60 100644
--- a/sysdeps/x86_64/multiarch/sched_cpucount.c
+++ b/sysdeps/x86_64/multiarch/sched_cpucount.c
@@ -27,7 +27,7 @@
#define POPCNT(l) \
({ __cpu_mask r; \
- asm ("popcntq %1, %0" : "=r" (r) : "0" (l));\
+ asm ("popcnt %1, %0" : "=r" (r) : "0" (l));\
r; })
#define __sched_cpucount static popcount_cpucount
#include <posix/sched_cpucount.c>