Improve the x64 code output slightly

This commit is contained in:
Jean Pierre Cimalando 2021-01-31 22:56:48 +01:00
parent 4dbe8bd602
commit d5bb51488d

View file

@ -6,6 +6,7 @@
#pragma once #pragma once
#include "WindowedSinc.h" #include "WindowedSinc.h"
#include <cstdint>
namespace sfz { namespace sfz {
@ -28,7 +29,7 @@ inline float AbstractWindowedSinc<T>::getUnchecked(float x) const noexcept
size_t tableSize = static_cast<const T*>(this)->getTableSize(); size_t tableSize = static_cast<const T*>(this)->getTableSize();
float ix = (x + points / 2.0f) * ((tableSize - 1) / points); float ix = (x + points / 2.0f) * ((tableSize - 1) / points);
int i0 = static_cast<int>(ix); intptr_t i0 = static_cast<intptr_t>(ix);
float mu = ix - i0; float mu = ix - i0;
float y0 = table[i0]; float y0 = table[i0];
float dy = table[i0 + 1] - y0; float dy = table[i0 + 1] - y0;