Skip to content
Permalink
Browse files

Remove SSE4 assembly implementation

  • Loading branch information...
sipa committed Jun 12, 2018
1 parent 7ebae4d commit 4a221cef1bc5ce093616f58d2295bad9dc6ad5b1
Showing with 2 additions and 1,517 deletions.
  1. +0 −4 src/Makefile.am
  2. +2 −7 src/crypto/sha256.cpp
  3. +0 −1,506 src/crypto/sha256_sse4.cpp
@@ -323,10 +323,6 @@ crypto_libbitcoin_crypto_base_a_SOURCES = \
crypto/sha512.cpp \
crypto/sha512.h

if USE_ASM
crypto_libbitcoin_crypto_base_a_SOURCES += crypto/sha256_sse4.cpp
endif

crypto_libbitcoin_crypto_sse41_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
crypto_libbitcoin_crypto_sse41_a_CPPFLAGS = $(AM_CPPFLAGS)
crypto_libbitcoin_crypto_sse41_a_CXXFLAGS += $(SSE41_CXXFLAGS)
@@ -10,19 +10,12 @@
#include <atomic>

#if defined(__x86_64__) || defined(__amd64__) || defined(__i386__)
#if defined(USE_ASM)
#include <cpuid.h>
namespace sha256_sse4
{
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks);
}

namespace sha256_sse41
{
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks);
}
#endif
#endif

namespace sha256d64_sse41
{
@@ -44,6 +37,8 @@ namespace sha256_shani
void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks);
}

#endif

// Internal implementation code.
namespace
{
Oops, something went wrong.

0 comments on commit 4a221ce

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