aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-14 12:03:22 -0400
committerJack Lloyd <[email protected]>2016-10-14 12:03:22 -0400
commit8b3bda479efecef760f052cc055d3d6d98bf0637 (patch)
tree77cd13fe2e62085c2f04bf437c1e845a20bf6a01 /src/lib/hash
parent60fc0ebf44e746b17d46a9d53054064808476495 (diff)
Add ISA annotations to functions using SIMD, AES, etc
Also emit `#pragma GCC target` in the ISA specific amalgamation files. This allows compiling without any special compiler flags, at least with GCC 6.2 and Clang 3.8. The ISA annotations are ignored in MSVC, which just emits whatever instruction the intrinsic requires.
Diffstat (limited to 'src/lib/hash')
-rw-r--r--src/lib/hash/sha1_sse2/sha1_sse2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/hash/sha1_sse2/sha1_sse2.cpp b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
index 2ece541b0..0f88bb4c2 100644
--- a/src/lib/hash/sha1_sse2/sha1_sse2.cpp
+++ b/src/lib/hash/sha1_sse2/sha1_sse2.cpp
@@ -152,6 +152,7 @@ inline void F4(u32bit A, u32bit& B, u32bit C, u32bit D, u32bit& E, u32bit msg)
* SHA-160 Compression Function using SSE for message expansion
*/
//static
+BOTAN_FUNC_ISA("sse2")
void SHA_160::sse2_compress_n(secure_vector<uint32_t>& digest, const byte input[], size_t blocks)
{
using namespace SHA1_SSE2_F;