diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-10-29 22:55:41 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-10-29 22:55:41 +0100 |
commit | 933021ed44e6c1bd2cf1dee91fc033c145c061af (patch) | |
tree | 394a40921470502054b678924d060fc5b882fc91 /src/Buffer.h | |
parent | 004ff5c13515f61728245ccd3d1f281be987b041 (diff) | |
download | dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.gz dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.bz2 dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.zip |
Change to 16-bit fixed point
Diffstat (limited to 'src/Buffer.h')
-rw-r--r-- | src/Buffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Buffer.h b/src/Buffer.h index 711b804..f6c94e0 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -37,7 +37,9 @@ #include "fpm/fixed.hpp" typedef std::complex<float> complexf; -typedef std::complex<fpm::fixed_16_16> complexfix; + +using fixed_16 = fpm::fixed<std::int16_t, std::int32_t, 6>; +typedef std::complex<fixed_16> complexfix; /* Buffer is a container for a byte array, which is memory-aligned * to 32 bytes for SSE performance. |