diff options
author | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-08-25 11:42:31 +0000 |
---|---|---|
committer | Michael Kuperstein <michael.m.kuperstein@intel.com> | 2015-08-25 11:42:31 +0000 |
commit | b62c5bc64dee3642884c31b8208c07a6f74b81fd (patch) | |
tree | 59e7e533fcb1ad2fbad34e30c0ee51b228298797 /clang/lib/Headers/immintrin.h | |
parent | bb9729eb4b06de5fec0381b281b8ab582c63f768 (diff) | |
download | bcm5719-llvm-b62c5bc64dee3642884c31b8208c07a6f74b81fd.tar.gz bcm5719-llvm-b62c5bc64dee3642884c31b8208c07a6f74b81fd.zip |
Revert r245923 since it breaks mingw.
llvm-svn: 245929
Diffstat (limited to 'clang/lib/Headers/immintrin.h')
-rw-r--r-- | clang/lib/Headers/immintrin.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/clang/lib/Headers/immintrin.h b/clang/lib/Headers/immintrin.h index 5cefc4093d9..604bc8ca5b3 100644 --- a/clang/lib/Headers/immintrin.h +++ b/clang/lib/Headers/immintrin.h @@ -148,58 +148,4 @@ _writegsbase_u64(unsigned long long __V) * whereas others are also available at all times. */ #include <adxintrin.h> -static __inline__ unsigned short __attribute__((__always_inline__, __nodebug__)) -_rotwl(unsigned short _Value, int _Shift) { - _Shift &= 0xf; - return _Shift ? (_Value << _Shift) | (_Value >> (16 - _Shift)) : _Value; -} - -static __inline__ unsigned short __attribute__((__always_inline__, __nodebug__)) -_rotwr(unsigned short _Value, int _Shift) { - _Shift &= 0xf; - return _Shift ? (_Value >> _Shift) | (_Value << (16 - _Shift)) : _Value; -} - -static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) -_rotl(unsigned int _Value, int _Shift) { - _Shift &= 0x1f; - return _Shift ? (_Value << _Shift) | (_Value >> (32 - _Shift)) : _Value; -} - -static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) -_rotr(unsigned int _Value, int _Shift) { - _Shift &= 0x1f; - return _Shift ? (_Value >> _Shift) | (_Value << (32 - _Shift)) : _Value; -} - -/* - * MS defines _lrotl/_lrotr in a slightly incompatible way, since - * unsigned long is always 32-bit in MSVC. - */ -#ifdef _MSC_VER -static __inline__ unsigned long __attribute__((__always_inline__, __nodebug__)) -_lrotl(unsigned long _Value, int _Shift) { - _Shift &= 0x1f; - return _Shift ? (_Value << _Shift) | (_Value >> (32 - _Shift)) : _Value; -} - -static __inline__ unsigned long __attribute__((__always_inline__, __nodebug__)) -_lrotr(unsigned long _Value, int _Shift) { - _Shift &= 0x1f; - return _Shift ? (_Value >> _Shift) | (_Value << (32 - _Shift)) : _Value; -} -#else -static __inline__ unsigned long __attribute__((__always_inline__, __nodebug__)) -_lrotl(unsigned long _Value, int _Shift) { - _Shift &= 0x3f; - return _Shift ? (_Value << _Shift) | (_Value >> (64 - _Shift)) : _Value; -} - -static __inline__ unsigned long __attribute__((__always_inline__, __nodebug__)) -_lrotr(unsigned long _Value, int _Shift) { - _Shift &= 0x3f; - return _Shift ? (_Value >> _Shift) | (_Value << (64 - _Shift)) : _Value; -} -#endif - #endif /* __IMMINTRIN_H */ |