Skip to content

Commit

Permalink
Fix GCC build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Nov 19, 2024
1 parent 2de4a06 commit 0caa58c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion soup/crc32_intrin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ NAMESPACE_SOUP
{
#if SOUP_X86
#if defined(__GNUC__) || defined(__clang__)
__attribute__((target("pclmul")))
__attribute__((target("sse4.1,pclmul")))
#endif
uint32_t crc32_pclmul(const uint8_t* p, size_t size, uint32_t crc) noexcept
{
Expand Down
2 changes: 1 addition & 1 deletion soup/sha1_intrin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ NAMESPACE_SOUP

#if SOUP_X86
#if defined(__GNUC__) || defined(__clang__)
__attribute__((target("sha,ssse3")))
__attribute__((target("sha,sse4.1")))
#endif
void sha1_transform(uint32_t state[5], const uint8_t data[64]) noexcept
{
Expand Down

0 comments on commit 0caa58c

Please sign in to comment.