Add __builtin___clear_cache to the portability headers
[folly.git] / folly / Portability.h
index 7a48f5332487e23c6179151dac2e75e398626670..17c064ba8a6f01d1d9771942a2c99a091cbf5241 100644 (file)
@@ -109,6 +109,12 @@ constexpr bool kHasUnalignedAccess = false;
 # define FOLLY_PPC64 0
 #endif
 
+namespace folly {
+constexpr bool kIsArchAmd64 = FOLLY_X64 == 1;
+constexpr bool kIsArchAArch64 = FOLLY_A64 == 1;
+constexpr bool kIsArchPPC64 = FOLLY_PPC64 == 1;
+}
+
 // packing is very ugly in msvc
 #ifdef _MSC_VER
 # define FOLLY_PACK_ATTR /**/