[libc-commits] [libc] 5001505 - [libc][Obvious] Add __FMA__ flag detection to cpu_features.h

Tue Ly via libc-commits libc-commits at lists.llvm.org
Mon Feb 6 13:06:34 PST 2023


Author: Tue Ly
Date: 2023-02-06T16:06:05-05:00
New Revision: 5001505a40d3cd275161e3ac3df80bd8f6ed5b8c

URL: https://github.com/llvm/llvm-project/commit/5001505a40d3cd275161e3ac3df80bd8f6ed5b8c
DIFF: https://github.com/llvm/llvm-project/commit/5001505a40d3cd275161e3ac3df80bd8f6ed5b8c.diff

LOG: [libc][Obvious] Add __FMA__ flag detection to cpu_features.h

Added: 
    

Modified: 
    libc/src/__support/cpu_features.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/cpu_features.h b/libc/src/__support/cpu_features.h
index c3ecd351b68f..68bf6fa474c5 100644
--- a/libc/src/__support/cpu_features.h
+++ b/libc/src/__support/cpu_features.h
@@ -36,7 +36,7 @@
 #define LIBC_TARGET_HAS_AVX512BW
 #endif
 
-#if defined(__ARM_FEATURE_FMA) || defined(__AVX2__)
+#if defined(__ARM_FEATURE_FMA) || defined(__AVX2__) || defined(__FMA__)
 #define LIBC_TARGET_HAS_FMA
 #endif
 


        


More information about the libc-commits mailing list