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

Unified Diff: Source/wtf/Compiler.h

Issue 604373003: [WIP] Supporting arm_neon_optional flag for blink platform. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/wtf/CPU.cpp ('k') | Source/wtf/wtf.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Compiler.h
diff --git a/Source/wtf/Compiler.h b/Source/wtf/Compiler.h
index 67050694ebb54804881bf0f0150774c80da3941b..5276f15e143c470d91d439a221569eb83934f1d2 100644
--- a/Source/wtf/Compiler.h
+++ b/Source/wtf/Compiler.h
@@ -256,4 +256,12 @@
#define WTF_PRETTY_FUNCTION __FUNCTION__
#endif
+/* WTF_PURE_FUNCTION */
+
+#if COMPILER(GCC)
+#define WTF_PURE_FUNCTION __attribute__((pure))
+#else
+#define WTF_PURE_FUNCTION /* nothing */
+#endif
+
#endif /* WTF_Compiler_h */
« no previous file with comments | « Source/wtf/CPU.cpp ('k') | Source/wtf/wtf.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698