Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2008 16:44:51 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        d@delphij.net
Cc:        sephe@freebsd.org, freebsd-arch@freebsd.org
Subject:   Re: A couple of bitwise operations
Message-ID:  <20080516163857.Y43605@delplex.bde.org>
In-Reply-To: <482D193D.2010802@delphij.net>
References:  <482D193D.2010802@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 15 May 2008, Xin LI wrote:

> I find the DragonFly macros, __BIT, __BITS, __LOWEST_SET_BIT,
> __SHIFTOUT, __SHIFTIN and __SHIFTOUT_MASK useful.  Any objection adding
> this as sys/sys/bitops.h?
>
> (These macros are found in NetBSD in sys/sys/cdefs.h and DragonFly as
> sys/sys/bitops.h)

WHat's wrong with bitstring(3)(9undoc), except that it was invented here
and doesn't have a style bug after every #define?  Both have naming errors
-- bitstring has too many unsafe macros whose name is in lower case, while
bitops uses upper case even for safe macros.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080516163857.Y43605>