(no title)
oshepherd | 11 years ago
Type punning by union is implementation defined behavior. Everyone fortunately defines it to Do The Right Thing (TM).
The truly standard supported way to type pun is by memcpy
float f = ...; int x; memcpy(&x, &f, sizeof x);
jakobegger|11 years ago
markrages|11 years ago
Embedded targets are always memory-constrained. If they aren't, you are wasting money on hardware.