[builtins] Make some ISA macro checks work with MSVC
authorReid Kleckner <rnk@google.com>
Fri, 7 Apr 2017 17:18:43 +0000 (17:18 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 7 Apr 2017 17:18:43 +0000 (17:18 +0000)
llvm-svn: 299786

compiler-rt/lib/builtins/clear_cache.c
compiler-rt/lib/builtins/x86_64/floatdidf.c
compiler-rt/lib/builtins/x86_64/floatdisf.c

index a68f9fc..25570fc 100644 (file)
@@ -90,7 +90,7 @@ uintptr_t GetCurrentProcess(void);
  */
 
 void __clear_cache(void *start, void *end) {
-#if __i386__ || __x86_64__
+#if __i386__ || __x86_64__ || defined(_M_IX86) || defined(_M_X64)
 /*
  * Intel processors have a unified instruction and data cache
  * so there is nothing to do
index 388404e..dead0ed 100644 (file)
@@ -4,7 +4,7 @@
 
 /* double __floatdidf(di_int a); */
 
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(_M_X64)
 
 #include "../int_lib.h"
 
index 96c3728..99d5621 100644 (file)
@@ -2,7 +2,7 @@
  * License. See LICENSE.TXT for details.
  */
 
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(_M_X64)
 
 #include "../int_lib.h"