Stuart Longland ef6c4be655
Safer IEEE754 conversion.
The conversion given assumed two things:

1. the pointer was either 32-bit aligned or that unaligned word access
   was safe.  (Not the case on ARM)

We avoid this by using memcpy to copy to a buffer that *is*
32-bit-word-aligned.

2. the word was in native-endian format.

The original code appeared to assume the given word would be in
big-endian format (aka "network" byte order), so we convert it to the
host's native format before casting.

We re-instate the original implementation, controlled by a compiler
switch to allow easy rollback if problems are encountered.
2015-12-03 08:08:22 +10:00
..
2012-07-19 22:34:03 +02:00
2015-12-03 08:08:22 +10:00
2014-02-24 11:02:26 +01:00
2013-09-13 17:53:33 +02:00
2013-09-13 17:53:33 +02:00
2013-09-13 17:53:33 +02:00