Skip to content

Commit

Permalink
crypto: change from address of Transform_AVX2 pointer to pointer of p…
Browse files Browse the repository at this point in the history
…ointer
  • Loading branch information
xanimo committed Nov 1, 2024
1 parent 5c205e0 commit cd58faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/sha256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,10 @@ void inline Initialize_transform_ptr(void)
{
#if USE_AVX2 && defined(__linux__)
if (__builtin_cpu_supports("avx2"))
sha256::transform_ptr = &sha256::Transform_AVX2;
sha256::transform_ptr = sha256::Transform_AVX2;
#elif USE_AVX2 && defined(__WIN64__)
if (AVXEnabled)
sha256::transform_ptr = &sha256::Transform_AVX2;
sha256::transform_ptr = sha256::Transform_AVX2;
#endif
#if defined(USE_ASM) && (defined(__x86_64__) || defined(__amd64__) || defined(__i386__))
bool have_sse4 = false;
Expand Down

0 comments on commit cd58faa

Please sign in to comment.