diff options
author | Roland McGrath <roland@redhat.com> | 2010-08-25 12:13:08 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-08-25 12:13:08 -0700 |
commit | 8b2b77153826547eb9cb204c3d3e0e407b574dba (patch) | |
tree | e791f835eb4f8e827c9efedc5bc2d2f2c31703c8 /sysdeps/x86_64/multiarch/varshift.h | |
parent | e73015f2d666b66c69f3c6f350e2dcd3df5b075a (diff) | |
download | glibc-8b2b77153826547eb9cb204c3d3e0e407b574dba.tar.gz |
Clean up warnings in new x86_64/multiarch code.
Diffstat (limited to 'sysdeps/x86_64/multiarch/varshift.h')
-rw-r--r-- | sysdeps/x86_64/multiarch/varshift.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/x86_64/multiarch/varshift.h b/sysdeps/x86_64/multiarch/varshift.h index 58f98b0fda..9554f2ddf9 100644 --- a/sysdeps/x86_64/multiarch/varshift.h +++ b/sysdeps/x86_64/multiarch/varshift.h @@ -17,11 +17,15 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <stdint.h> +#include <tmmintrin.h> -extern char ___m128i_shift_right[31] __attribute__ ((visibility ("hidden"))); +extern const int8_t ___m128i_shift_right[31] attribute_hidden; static __inline__ __m128i -__m128i_shift_right (__m128i value, unsigned long offset) +__m128i_shift_right (__m128i value, unsigned long int offset) { - return _mm_shuffle_epi8 (value, _mm_loadu_si128 ((__m128 *) (___m128i_shift_right + offset))); + return _mm_shuffle_epi8 (value, + _mm_loadu_si128 ((__m128i *) (___m128i_shift_right + + offset))); } |