On Mon, Apr 2, 2012 at 11:35 AM, Alan Silverstein <[email protected]> wrote:
> Amusing, it reminds me that in the last year I carefully marked some new
> source functions "inline", but later discovered that gcc was basically
> ignoring my advice and doing whatever the heck it wanted. Turns out
> "inline" is merely a suggestion, and I don't know of a way to force it
> ("I know what I'm doing and I want to waste space for performance")
> other than reverting to macros. (Maybe there's some gcc option or
> #pragma I didn't look for...)
>
See http://gcc.gnu.org/onlinedocs/gcc/Inline.html
Here is a macro that does the trick:
#define force_inline inline __attribute__((always_inline))
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel