shaintrin.h (261991) | shaintrin.h (280031) |
---|---|
1/*===---- shaintrin.h - SHA intrinsics -------------------------------------=== 2 * 3 * Permission is hereby granted, free of charge, to any person obtaining a copy 4 * of this software and associated documentation files (the "Software"), to deal 5 * in the Software without restriction, including without limitation the rights 6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 * copies of the Software, and to permit persons to whom the Software is 8 * furnished to do so, subject to the following conditions: --- 24 unchanged lines hidden (view full) --- 33#endif 34 35#define _mm_sha1rnds4_epu32(V1, V2, M) __extension__ ({ \ 36 __builtin_ia32_sha1rnds4((V1), (V2), (M)); }) 37 38static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 39_mm_sha1nexte_epu32(__m128i __X, __m128i __Y) 40{ | 1/*===---- shaintrin.h - SHA intrinsics -------------------------------------=== 2 * 3 * Permission is hereby granted, free of charge, to any person obtaining a copy 4 * of this software and associated documentation files (the "Software"), to deal 5 * in the Software without restriction, including without limitation the rights 6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 * copies of the Software, and to permit persons to whom the Software is 8 * furnished to do so, subject to the following conditions: --- 24 unchanged lines hidden (view full) --- 33#endif 34 35#define _mm_sha1rnds4_epu32(V1, V2, M) __extension__ ({ \ 36 __builtin_ia32_sha1rnds4((V1), (V2), (M)); }) 37 38static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 39_mm_sha1nexte_epu32(__m128i __X, __m128i __Y) 40{ |
41 return __builtin_ia32_sha1nexte(__X, __Y); | 41 return (__m128i)__builtin_ia32_sha1nexte((__v4si)__X, (__v4si)__Y); |
42} 43 44static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 45_mm_sha1msg1_epu32(__m128i __X, __m128i __Y) 46{ | 42} 43 44static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 45_mm_sha1msg1_epu32(__m128i __X, __m128i __Y) 46{ |
47 return __builtin_ia32_sha1msg1(__X, __Y); | 47 return (__m128i)__builtin_ia32_sha1msg1((__v4si)__X, (__v4si)__Y); |
48} 49 50static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 51_mm_sha1msg2_epu32(__m128i __X, __m128i __Y) 52{ | 48} 49 50static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 51_mm_sha1msg2_epu32(__m128i __X, __m128i __Y) 52{ |
53 return __builtin_ia32_sha1msg2(__X, __Y); | 53 return (__m128i)__builtin_ia32_sha1msg2((__v4si)__X, (__v4si)__Y); |
54} 55 56static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 57_mm_sha256rnds2_epu32(__m128i __X, __m128i __Y, __m128i __Z) 58{ | 54} 55 56static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 57_mm_sha256rnds2_epu32(__m128i __X, __m128i __Y, __m128i __Z) 58{ |
59 return __builtin_ia32_sha256rnds2(__X, __Y, __Z); | 59 return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__X, (__v4si)__Y, (__v4si)__Z); |
60} 61 62static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 63_mm_sha256msg1_epu32(__m128i __X, __m128i __Y) 64{ | 60} 61 62static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 63_mm_sha256msg1_epu32(__m128i __X, __m128i __Y) 64{ |
65 return __builtin_ia32_sha256msg1(__X, __Y); | 65 return (__m128i)__builtin_ia32_sha256msg1((__v4si)__X, (__v4si)__Y); |
66} 67 68static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 69_mm_sha256msg2_epu32(__m128i __X, __m128i __Y) 70{ | 66} 67 68static __inline__ __m128i __attribute__((__always_inline__, __nodebug__)) 69_mm_sha256msg2_epu32(__m128i __X, __m128i __Y) 70{ |
71 return __builtin_ia32_sha256msg2(__X, __Y); | 71 return (__m128i)__builtin_ia32_sha256msg2((__v4si)__X, (__v4si)__Y); |
72} 73 74#endif /* __SHAINTRIN_H */ | 72} 73 74#endif /* __SHAINTRIN_H */ |