Skip to content

Commit

Permalink
Another attempt to fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jul 4, 2024
1 parent ab4d014 commit 2b0fb52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/relic_arch_none.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ uint_t arch_lzcnt(dig_t a) {
#ifdef _MSC_VER
return __lzcnt64(a);
#else
return __builtin_clzll(a);
return __builtin_clzl(a);
#endif
#endif
}
Expand Down Expand Up @@ -126,7 +126,7 @@ uint_t arch_tzcnt(dig_t a) {
#ifdef _MSC_VER
return __tzcnt64(a);
#else
return __builtin_ctzll(a);
return __builtin_ctzl(a);
#endif
#endif
}
1 change: 1 addition & 0 deletions src/arch/relic_arch_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void arch_init(void) {

void arch_clean(void) {
core_get()->lzcnt_ptr = NULL;
core_get()->tzcnt_ptr = NULL;
}

ull_t arch_cycles(void) {
Expand Down

0 comments on commit 2b0fb52

Please sign in to comment.