Skip to content
Snippets Groups Projects
Commit e334b681 authored by Raymond Toy's avatar Raymond Toy
Browse files

Fix aliasing issue noted by gcc 4.4.1 on Linux.

I think the offending code in each case is trying to extract the low
word if x. I think it works because on a little-endian machine,
*(unsigned*)&one is 0 since the low word is stored first. On a
big-endian machine, *(unsigned*)&one is the high word which, when
right shifted by 29, gives 1.  That is added to the address of x to
get the low word of x.
parent 022325cc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment