]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Stop force-inlining everything marked 'inline'
[wimlib] / include / wimlib / compiler.h
index 6bce5d0152e11742905461df5d1b6fcc1b71411d..2b1923c263f6c054c642d0b7c9b518b4e769f736 100644 (file)
 #  define WIMLIBAPI __attribute__((visibility("default")))
 #endif
 
-/* Declare that the annotated function should be inlined.  Currently, we force
- * the compiler to honor this because we use 'inline' in highly tuned code, e.g.
- * compression codecs.  */
-#define inline                 inline __attribute__((always_inline))
+/* Declare that the annotated function should always be inlined.  This might be
+ * desirable in highly tuned code, e.g. compression codecs.  */
+#define forceinline            inline __attribute__((always_inline))
 
 /* Declare that the annotated function should *not* be inlined.  */
 #define noinline               __attribute__((noinline))