kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 394b6f7dae9326cf71a5a9a8e2a5db311be738a5
parent 0c5bb07ce8ae146b691ee80beed4068caad3383e
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Tue,  9 Aug 2016 08:15:45 +0300

Fix i64 and long long mismatch on Ubuntu

Diffstat:
Minclude/kfr/base/atan.hpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/kfr/base/atan.hpp b/include/kfr/base/atan.hpp @@ -65,14 +65,14 @@ KFR_SINTRIN vec<f64, N> atan2k(vec<f64, N> y, vec<f64, N> x) { vec<f64, N> s, t, u; vec<i64, N> q; - q = select(x < 0, -2ll, 0ll); + q = select(x < 0, i64(-2), i64(0)); x = select(x < 0, -x, x); mask<i64, N> m; m = y > x; t = x; x = select(m, y, x); y = select(m, -t, y); - q = select(m, q + 1ll, q); + q = select(m, q + i64(1), q); s = y / x; t = s * s; u = -1.88796008463073496563746e-05; @@ -158,7 +158,7 @@ KFR_SINTRIN vec<f64, N> atan(const vec<f64, N>& s) { vec<f64, N> t, u; vec<i64, N> q; - q = select(s < 0.0, 2ll, 0ll); + q = select(s < 0.0, i64(2), i64(0)); s = select(s < 0.0, -s, s); q = select(s > 1.0, q | 1, q); s = select(s > 1.0, 1.0 / s, s);