likely and unlikely
Stefan Farfeleder
stefan at fafoe.narf.at
Fri Mar 12 12:59:21 UTC 2010
On Fri, Mar 12, 2010 at 01:26:08PM +0100, Ed Schouten wrote:
> Hi Ivan,
>
> * Ivan Voras <ivoras at freebsd.org> wrote:
> > Wouldn't it be more convenient to have a single global definition of
> > them, under #ifdef __GNUC__ for example in sys/stddef.h ?
>
> Wouldn't it be better to have them in sys/cdefs.h?
Putting macros 'likely' and 'unlikely' into sys/cdefs.h creates a big
namespace violation problem; C code using those identifiers will break.
Stefan
More information about the freebsd-arch
mailing list