diff options
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 58f98b0..9554f2d 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))); } |