[libc-commits] [libc] 649d953 - [libc] Use more consistent if defined syntax

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Wed Nov 17 07:17:18 PST 2021


Author: Guillaume Chatelet
Date: 2021-11-17T15:16:28Z
New Revision: 649d95371680cbf7f740c990c0357372c2bd4058

URL: https://github.com/llvm/llvm-project/commit/649d95371680cbf7f740c990c0357372c2bd4058
DIFF: https://github.com/llvm/llvm-project/commit/649d95371680cbf7f740c990c0357372c2bd4058.diff

LOG: [libc] Use more consistent if defined syntax

Added: 
    

Modified: 
    libc/test/src/string/memory_utils/elements_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/src/string/memory_utils/elements_test.cpp b/libc/test/src/string/memory_utils/elements_test.cpp
index 0f5f460cb849c..b081a28470b32 100644
--- a/libc/test/src/string/memory_utils/elements_test.cpp
+++ b/libc/test/src/string/memory_utils/elements_test.cpp
@@ -14,10 +14,10 @@ namespace __llvm_libc {
 
 // Registering Types
 using FixedSizeTypes = testing::TypeList<
-#ifdef __SSE2__
+#if defined(__SSE2__)
     x86::Vector128, //
 #endif              // __SSE2__
-#ifdef __AVX2__
+#if defined(__AVX2__)
     x86::Vector256, //
 #endif              // __AVX2__
 #if defined(__AVX512F__) and defined(__AVX512BW__)


        


More information about the libc-commits mailing list