Skip to content

Commit

Permalink
Update yespower-blake2b.c
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Jan 14, 2024
1 parent c3e3ebe commit e50732f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Native/libmultihash/yespower/yespower-blake2b.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
#warning "Note: AVX and XOP are not enabled. That's OK."
#elif defined(__x86_64__) || defined(__i386__)
#warning "SSE2 not enabled. Expect poor performance."
#else
#warning "Note: building generic code for non-x86. That's OK."
#endif

/*
Expand Down Expand Up @@ -1193,8 +1191,8 @@ int yespower_b2b(yespower_local_t *local,
int yespower_b2b_tls(const uint8_t *src, size_t srclen,
const yespower_params_t *params, yespower_binary_t *dst)
{
static __thread int initialized = 0;
static __thread yespower_local_t local;
static int initialized = 0;
static yespower_local_t local;

if (!initialized) {
init_region(&local);
Expand All @@ -1204,4 +1202,4 @@ int yespower_b2b_tls(const uint8_t *src, size_t srclen,
return yespower_b2b(&local, src, srclen, params, dst);
}

#endif
#endif

0 comments on commit e50732f

Please sign in to comment.