Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jul 11, 2024
1 parent 5b3f345 commit 0fc5475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/primesieve/cpu_supports_avx512_vbmi2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool has_cpuid_avx512_vbmi2();
namespace {

/// Initialized at startup
bool cpu_supports_avx512_vbmi2 = primesieve::has_cpuid_avx512_vbmi2();
const bool cpu_supports_avx512_vbmi2 = primesieve::has_cpuid_avx512_vbmi2();

} // namespace

Expand Down
2 changes: 1 addition & 1 deletion include/primesieve/cpu_supports_popcnt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool has_cpuid_popcnt();
namespace {

/// Initialized at startup
bool cpu_supports_popcnt = primesieve::has_cpuid_popcnt();
const bool cpu_supports_popcnt = primesieve::has_cpuid_popcnt();

} // namespace

Expand Down

0 comments on commit 0fc5475

Please sign in to comment.