From owner-freebsd-arch@FreeBSD.ORG Fri Mar 12 12:59:21 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 040C5106564A; Fri, 12 Mar 2010 12:59:21 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep22-int.chello.at (viefep22-int.chello.at [62.179.121.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0ACF28FC12; Fri, 12 Mar 2010 12:59:19 +0000 (UTC) Received: from edge04.upcmail.net ([192.168.13.239]) by viefep11-int.chello.at (InterMail vM.8.01.02.00 201-2260-120-20100118) with ESMTP id <20100312124301.JDAE16311.viefep11-int.chello.at@edge04.upcmail.net>; Fri, 12 Mar 2010 13:43:01 +0100 Received: from mole.fafoe.narf.at ([213.47.85.26]) by edge04.upcmail.net with edge id sCiz1d03C0a5KZh04Cj0mu; Fri, 12 Mar 2010 13:43:01 +0100 X-SourceIP: 213.47.85.26 Received: by mole.fafoe.narf.at (Postfix, from userid 1001) id 414966D41B; Fri, 12 Mar 2010 13:42:59 +0100 (CET) Date: Fri, 12 Mar 2010 13:42:59 +0100 From: Stefan Farfeleder To: Ed Schouten Message-ID: <20100312124258.GE1738@mole.fafoe.narf.at> References: <20100312122559.GU8200@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100312122559.GU8200@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Cloudmark-Analysis: v=1.1 cv=njNPHi+DQDbBstGV8v+G+22uStbhm/9+iYoC8d6PAUw= c=1 sm=0 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=7F2wolIoasNwT6X3mrIA:9 a=Z55sgIiyV6pNbxMxrEjHfJwA3u4A:4 a=CjuIK1q_8ugA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: Ivan Voras , freebsd-arch@freebsd.org Subject: Re: likely and unlikely X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 12:59:21 -0000 On Fri, Mar 12, 2010 at 01:26:08PM +0100, Ed Schouten wrote: > Hi Ivan, > > * Ivan Voras 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