Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 1999 00:01:21 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/netinet ip_fw.c 
Message-ID:  <199907300701.AAA00781@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 30 Jul 1999 11:17:37 %2B1000." <199907300117.LAA09942@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >> > >   8 -> NBBy
> >> > "number of bits by byte"?
> >> Yep, that's exactly what it is. NBBY is much preferred to hardcoding 8 :)
> >
> >BITS_PER_BYTE is much preferred to NBBY.
> 
> You mean "Standard C's CHAR_BIT is much preferred to NBBy" when the number
> of bits in a byte is actually wanted.

CHAR_BIT is ambiguous (it implies bits-per-character).  NBBY is 
needlessly short (it sounds like a BSDism).

BITS_PER_MACHINE_BYTE is probably as good a name as any.

My word games for the day.

-- 
\\  The mind's the standard       \\  Mike Smith
\\  of the man.                   \\  msmith@freebsd.org
\\    -- Joseph Merrick           \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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