Re: Size-independent byte order swapping functions.
From: David Schultz (das_at_FreeBSD.ORG)
Date: 11/25/03
- Previous message: Daniel O'Connor: "Re: Making a FreeBSD DVD"
- In reply to: Pawel Jakub Dawidek: "Size-independent byte order swapping functions."
- Next in thread: Mark Murray: "Re: Size-independent byte order swapping functions."
- Reply: Mark Murray: "Re: Size-independent byte order swapping functions."
- Reply: Pawel Jakub Dawidek: "Re: Size-independent byte order swapping functions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 Nov 2003 17:13:08 -0800 To: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
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.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Daniel O'Connor: "Re: Making a FreeBSD DVD"
- In reply to: Pawel Jakub Dawidek: "Size-independent byte order swapping functions."
- Next in thread: Mark Murray: "Re: Size-independent byte order swapping functions."
- Reply: Mark Murray: "Re: Size-independent byte order swapping functions."
- Reply: Pawel Jakub Dawidek: "Re: Size-independent byte order swapping functions."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|