diff options
Diffstat (limited to 'src/lib/formats/tzx_cas.cpp')
-rw-r--r-- | src/lib/formats/tzx_cas.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/formats/tzx_cas.cpp b/src/lib/formats/tzx_cas.cpp index a4b2b30ed81..e1ced8175f0 100644 --- a/src/lib/formats/tzx_cas.cpp +++ b/src/lib/formats/tzx_cas.cpp @@ -27,11 +27,12 @@ TODO: */ +#include "tzx_cas.h" +#include "imageutl.h" + #include <cassert> +#include <cmath> -#include "tzx_cas.h" -#include "formats/imageutl.h" -#include "emu.h" #define TZX_WAV_FREQUENCY 44100 #define WAVE_LOW -0x5a9e @@ -435,7 +436,7 @@ static int tzx_handle_generalized(int16_t **buffer, const uint8_t *bytes, int pa const uint8_t *symtable = bytes; const uint8_t *table2 = bytes + (2 * npd + 1)*asd; - int NB = ceil(compute_log2(asd)); // number of bits needed to represent each symbol + int NB = std::ceil(compute_log2(asd)); // number of bits needed to represent each symbol uint8_t stream_bit = 0; uint32_t stream_byte = 0; |