Skip to content

Commit

Permalink
Fix build with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 authored and FrancescAlted committed Jan 11, 2023
1 parent 72575da commit bf641be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ __cpuidex(int32_t cpuInfo[4], int32_t function_id, int32_t subfunction_id) {

// GCC folks added _xgetbv in immintrin.h starting in GCC 9
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659
#if !(defined(_IMMINTRIN_H_INCLUDED) && (BLOSC_GCC_VERSION >= 900))
#if !(defined(_IMMINTRIN_H_INCLUDED) && (BLOSC_GCC_VERSION >= 900)) && !defined(__IMMINTRIN_H)
/* Reads the content of an extended control register.
https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family
*/
Expand All @@ -160,7 +160,7 @@ _xgetbv(uint32_t xcr) {
);
return ((uint64_t)edx << 32) | eax;
}
#endif // !(defined(_IMMINTRIN_H_INCLUDED) && (BLOSC_GCC_VERSION >= 900))
#endif // !(defined(_IMMINTRIN_H_INCLUDED) && (BLOSC_GCC_VERSION >= 900)) && !defined(__IMMINTRIN_H)
#endif /* defined(_MSC_VER) */

#ifndef _XCR_XFEATURE_ENABLED_MASK
Expand Down

0 comments on commit bf641be

Please sign in to comment.