[Asterisk-Dev] always_inline change...
Kevin P. Fleming
kpfleming at digium.com
Fri Nov 4 09:26:17 MST 2005
Luigi Rizzo wrote:
> Given that the same file already has a conditional section for
> builtin_expect which looks at the gcc version number,
> how about writing the entire file as follows ?
>
> #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
> #define __builtin_expect(exp, c) (exp)
> #define force_inline inline
> #else
> #define force_inline inline __attribute__((always_inline))
> #endif
>
> (or something equivalent matching the first gcc version where
> always_inline is properly supported) ?
That seems reasonable; I'll take care of it this morning.
More information about the asterisk-dev
mailing list