From 8e999d29628b0d1fec3046722554e792c351450b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 11 Aug 2011 14:07:04 -0400 Subject: Minor optimization of popcount in l10nflist --- sysdeps/x86_64/l10nflist.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sysdeps/x86_64/l10nflist.c (limited to 'sysdeps') diff --git a/sysdeps/x86_64/l10nflist.c b/sysdeps/x86_64/l10nflist.c new file mode 100644 index 0000000000..2e08372338 --- /dev/null +++ b/sysdeps/x86_64/l10nflist.c @@ -0,0 +1,13 @@ +#ifdef __POPCNT__ +# include + +static inline unsigned int +pop (unsigned int x) +{ + return _mm_popcnt_u32 (x); +} +# define ARCH_POP 1 + +#endif + +#include -- cgit v1.2.3-70-g09d2