Skip to content

Commit

Permalink
Add missing __builtin_cpu_init call in get_cpu_features
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Apr 25, 2024
1 parent 9194ec0 commit 5fceb36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ typedef enum {
#if defined(HAVE_CPU_FEAT_INTRIN)
static blosc_cpu_features blosc_get_cpu_features(void) {
blosc_cpu_features cpu_features = BLOSC_HAVE_NOTHING;

__builtin_cpu_init();
if (__builtin_cpu_supports("sse2")) {
cpu_features |= BLOSC_HAVE_SSE2;
}
Expand Down

0 comments on commit 5fceb36

Please sign in to comment.