Turn up compiler warnings to max and fix them; one more indefinite length test
diff --git a/src/ieee754.c b/src/ieee754.c
index 7844c1a..b4497cc 100644
--- a/src/ieee754.c
+++ b/src/ieee754.c
@@ -42,11 +42,12 @@
job and the resulting object code is smaller from combining code for the many different
cases (normal, subnormal, infinity, zero...) for the conversions.
- Dead stripping is also really helpful to get code size down.
+ Dead stripping is also really helpful to get code size down when floating point
+ encoding is not needed.
- This code also works solely using shifts and masks and thus has no dependency on
- any math libraries. It will even work if the CPU doesn't have any floating
- point support.
+ This code works solely using shifts and masks and thus has no dependency on
+ any math libraries. It can even work if the CPU doesn't have any floating
+ point support, though that isn't the most useful thing to do.
The memcpy() dependency is only for CopyFloatToUint32() and friends which only
is needed to avoid type punning when converting the actual float bits to
@@ -169,13 +170,6 @@
return u64;
}
-static inline double CopyUint64ToDouble(uint64_t u64)
-{
- double d;
- memcpy(&d, &u64, sizeof(uint64_t));
- return d;
-}
-
static inline float CopyUint32ToFloat(uint32_t u32)
{
float f;