Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1333)

Unified Diff: src/trusted/service_runtime/include/bits/wordsize.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/service_runtime/include/bits/wordsize.h
diff --git a/src/trusted/service_runtime/include/bits/wordsize.h b/src/trusted/service_runtime/include/bits/wordsize.h
index e1a468c4dfb55568127db5b1fa1e7456b787b90b..a17fb22363638147da45586f78d6bbef89940854 100644
--- a/src/trusted/service_runtime/include/bits/wordsize.h
+++ b/src/trusted/service_runtime/include/bits/wordsize.h
@@ -17,7 +17,14 @@
defined(_M_AMD64)
#define __WORDSIZE 64
#else
-#define __WORDSIZE 32
+#if defined(__mips__)
+# if defined __WORDSIZE
Mark Seaborn 2012/09/08 02:43:14 We normally use 1-char spacing for indenting #ifs,
+# undef __WORDSIZE
+# endif
+# define __WORDSIZE 32
Mark Seaborn 2012/09/08 02:43:14 Why redefine this? Won't this mess with whatever
petarj 2012/09/11 16:58:13 Ok, the MIPS host toolchain will set it to 32 anyw
+#else
+# define __WORDSIZE 32
#endif
#endif
+#endif

Powered by Google App Engine
This is Rietveld 408576698