Skip to content
Permalink
Browse files

Merge 13789 via bugfix_asm_pragmas-0.16

  • Loading branch information...
luke-jr committed Jul 30, 2018
2 parents 4324338 + bb9957c commit b8d31df2f81637ac44e81521c92ce2cb9520e0cd
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/crypto/sha256_sse4.cpp
@@ -10,6 +10,12 @@

#if defined(__x86_64__) || defined(__amd64__)

#if defined(__clang__)
#pragma clang attribute push(__attribute__((__target__("sse4"))), apply_to = function)
#elif defined(__GNUC__)
#pragma GCC target ("sse4")
#endif

namespace sha256_sse4
{
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks)
@@ -1503,4 +1509,8 @@ _SHUF_00BA: ddq 0xFFFFFFFFFFFFFFFF0b0a090803020100
_SHUF_DC00: ddq 0x0b0a090803020100FFFFFFFFFFFFFFFF
*/

#if defined(__clang__)
#pragma clang attribute pop
#endif

#endif

0 comments on commit b8d31df

Please sign in to comment.
You can’t perform that action at this time.