From 91a41a5d4af3be900eceedb0e93690c8ab212d7d Mon Sep 17 00:00:00 2001 From: Jaskowicz1 Date: Sun, 3 Dec 2023 21:48:30 +0000 Subject: [PATCH] fix: corrected some comments --- include/dpp/isa/avx.h | 5 ++++- include/dpp/isa/avx2.h | 5 ++++- include/dpp/isa/avx512.h | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/dpp/isa/avx.h b/include/dpp/isa/avx.h index 1440532e7f..a4c771b0d4 100644 --- a/include/dpp/isa/avx.h +++ b/include/dpp/isa/avx.h @@ -20,7 +20,10 @@ ************************************************************************************/ #pragma once -// 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 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. + * So, we make sure that both aren't defined, and only do this if _MSC_VER, __GNUC__, or __clang__, is defined. + */ #if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__) #include diff --git a/include/dpp/isa/avx2.h b/include/dpp/isa/avx2.h index 47401d2de8..9fb233d0c0 100644 --- a/include/dpp/isa/avx2.h +++ b/include/dpp/isa/avx2.h @@ -20,7 +20,10 @@ ************************************************************************************/ #pragma once -// 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 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. + * So, we make sure that both aren't defined, and only do this if _MSC_VER, __GNUC__, or __clang__, is defined. + */ #if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__) #include diff --git a/include/dpp/isa/avx512.h b/include/dpp/isa/avx512.h index 577d55b3cb..4902298573 100644 --- a/include/dpp/isa/avx512.h +++ b/include/dpp/isa/avx512.h @@ -20,7 +20,10 @@ ************************************************************************************/ #pragma once -// 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 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. + * So, we make sure that both aren't defined, and only do this if _MSC_VER, __GNUC__, or __clang__, is defined. + */ #if (!defined _MSC_VER && !defined __clang__) && (defined _MSC_VER || defined __GNUC__ || defined __clang__) #include