diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-08-11 14:07:04 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-08-11 14:07:04 -0400 |
commit | 8e999d29628b0d1fec3046722554e792c351450b (patch) | |
tree | 79061a4d87ac4cc31aa005554c627dea15a0ec9e /sysdeps | |
parent | 89edf2e9119b57fc404891670d2bc47bdfdb61ef (diff) | |
download | glibc-8e999d29628b0d1fec3046722554e792c351450b.zip glibc-8e999d29628b0d1fec3046722554e792c351450b.tar.gz glibc-8e999d29628b0d1fec3046722554e792c351450b.tar.bz2 |
Minor optimization of popcount in l10nflist
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/l10nflist.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/x86_64/l10nflist.c b/sysdeps/x86_64/l10nflist.c new file mode 100644 index 0000000..2e08372 --- /dev/null +++ b/sysdeps/x86_64/l10nflist.c @@ -0,0 +1,13 @@ +#ifdef __POPCNT__ +# include <popcntintrin.h> + +static inline unsigned int +pop (unsigned int x) +{ + return _mm_popcnt_u32 (x); +} +# define ARCH_POP 1 + +#endif + +#include <intl/l10nflist.c> |