diff options
author | David Robillard <d@drobilla.net> | 2019-09-29 22:39:51 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | fd48cffcc1838060bcc451300b38982776779c13 (patch) | |
tree | 6df1f08c1748ad255953a1b6a25a2366d8ba4bca /src/ieee_float.h | |
parent | 30d845380249d1de3a28e12407c5263629424c6d (diff) | |
download | serd-fd48cffcc1838060bcc451300b38982776779c13.tar.gz serd-fd48cffcc1838060bcc451300b38982776779c13.tar.bz2 serd-fd48cffcc1838060bcc451300b38982776779c13.zip |
Add minimal soft floating point implementation
Diffstat (limited to 'src/ieee_float.h')
-rw-r--r-- | src/ieee_float.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ieee_float.h b/src/ieee_float.h index adf2b6cf..a7f7cdf9 100644 --- a/src/ieee_float.h +++ b/src/ieee_float.h @@ -34,7 +34,7 @@ static const int dbl_subnormal_expt = -0x3FF - DBL_MANT_DIG + 2; static inline uint64_t double_to_rep(const double d) { - uint64_t rep; + uint64_t rep = 0; memcpy(&rep, &d, sizeof(rep)); return rep; } |