List Archive: gentoo-amd64
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On 07/01/2011 04:04 AM, Frank Peters wrote:
> A few days ago I posted about a possible problem with a floating
> point test called the UCBTEST. After examining the source code
> of this test, I see violations of aliasing rules throughout.
> It's hard to efficiently manipulate variables without them.
You can alias them with a char* (a char pointer can alias everything in
a valid and defined manner). What you do is use the char* to scan over
the target type. And since a char is always guaranteed to be 8 bits,
it's very suited for doing endian conversions.