Skip to content

Commit

Permalink
fix: added fixes for clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 committed Dec 3, 2023
1 parent 21909ff commit 64afcfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/dpp/isa/avx.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
************************************************************************************/
#pragma once

#if defined _MSC_VER || defined __GNUC__ || defined __clang__
// If the user is using clang-cl, both _MSC_VER and __clang__ are defined. However, clang-cl breaks using this as it knows nothing above __m128.
#if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__)

#include <immintrin.h>
#include <numeric>
Expand Down
3 changes: 2 additions & 1 deletion include/dpp/isa/avx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
************************************************************************************/
#pragma once

#if defined _MSC_VER || defined __GNUC__ || defined __clang__
// If the user is using clang-cl, both _MSC_VER and __clang__ are defined. However, clang-cl breaks using this as it knows nothing above __m128.
#if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__)

#include <immintrin.h>
#include <numeric>
Expand Down
3 changes: 2 additions & 1 deletion include/dpp/isa/avx512.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
************************************************************************************/
#pragma once

#if defined _MSC_VER || defined __GNUC__ || defined __clang__
// If the user is using clang-cl, both _MSC_VER and __clang__ are defined. However, clang-cl breaks using this as it knows nothing above __m128.
#if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__)

#include <immintrin.h>
#include <numeric>
Expand Down

0 comments on commit 64afcfe

Please sign in to comment.