Date: Fri, 12 Mar 2010 13:42:59 +0100 From: Stefan Farfeleder <stefan@fafoe.narf.at> To: Ed Schouten <ed@80386.nl> Cc: Ivan Voras <ivoras@freebsd.org>, freebsd-arch@freebsd.org Subject: Re: likely and unlikely Message-ID: <20100312124258.GE1738@mole.fafoe.narf.at> In-Reply-To: <20100312122559.GU8200@hoeg.nl> References: <hndbed$vok$1@dough.gmane.org> <20100312122559.GU8200@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 12, 2010 at 01:26:08PM +0100, Ed Schouten wrote: > Hi Ivan, > > * Ivan Voras <ivoras@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100312124258.GE1738>