Date: Mon, 24 Nov 2003 17:13:08 -0800 From: David Schultz <das@FreeBSD.ORG> To: Pawel Jakub Dawidek <nick@garage.freebsd.pl> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Size-independent byte order swapping functions. Message-ID: <20031125011308.GA98148@VARK.homeunix.com> In-Reply-To: <20031124095852.GZ511@garage.freebsd.pl> References: <20031124095852.GZ511@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 24, 2003, Pawel Jakub Dawidek wrote: > If one is using strictly defined types as uint8_t, uint16_t, int32_t, etc. > those macros are helpful IMHO, because futher value size changes does not > affects code for byte order managing. This also does not hit perfromance, > because this should be resolved at compile-time. Cool, looks useful. > I'm not sure if dedicated epanic() is the best way to implement out-of-range > errors prevention - the more handy solution should cause compile error. See CTASSERT.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031125011308.GA98148>