Date: Fri, 12 Jun 2015 02:50:08 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Erich Dollansky <erichsfreebsdlist@alogt.com>, Ian Lepore <ian@freebsd.org> Cc: freebsd-hackers@freebsd.org, freebsd-hackers@FreeBSD.org Subject: Re: allow ffs & co. a binary search Message-ID: <557A2CC0.9010409@selasky.org> In-Reply-To: <20150612081054.4589dcc7@B85M-HD3-0.alogt.com> References: <20150607081315.7c0f09fb@B85M-HD3-0.alogt.com> <5573EA5E.40806@selasky.org> <20150611152107.61f85189@B85M-HD3-0.alogt.com> <1434027471.1200.401.camel@freebsd.org> <20150611224347.64372a76@B85M-HD3-0.alogt.com> <1434034310.1415.2.camel@freebsd.org> <20150612081054.4589dcc7@B85M-HD3-0.alogt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/12/15 02:10, Erich Dollansky wrote: > Hi, > > On Thu, 11 Jun 2015 08:51:50 -0600 > Ian Lepore <ian@freebsd.org> wrote: > >> On Thu, 2015-06-11 at 22:43 +0800, Erich Dollansky wrote: >>> Hi, >>> >>> On Thu, 11 Jun 2015 06:57:51 -0600 >>> Ian Lepore <ian@freebsd.org> wrote: >>> >>>> On Thu, 2015-06-11 at 15:21 +0800, Erich Dollansky wrote: >>>>> On Sun, 07 Jun 2015 08:53:18 +0200 >>>>> Hans Petter Selasky <hps@selasky.org> wrote: >>>>> >>>> Is there any reason that this whole change, userland and kernel, >>>> isn't just: >>>> >>>> #define ffs(n) __builtin_ffs(n) >>> >>> I did not see this. Where is it? >>> >>> Of course, if this is already done, it does not have to be done >>> again. >>> >>> Erich >> >> I'm not quite sure what you're asking. Both clang and gcc support >> __builtin_ffs(), so I'm saying why don't we just use it and call the >> whole problem solved? >> > so, it is not in the sources yet. Yes, then use it and let the compiler > guys crack their heads. > > Erich Hi, Are we depending on that ffs() is a valid symbol when linking? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557A2CC0.9010409>