Improve the x64 code output slightly
This commit is contained in:
parent
4dbe8bd602
commit
d5bb51488d
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
#include "WindowedSinc.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace sfz {
|
||||
|
||||
|
|
@ -28,7 +29,7 @@ inline float AbstractWindowedSinc<T>::getUnchecked(float x) const noexcept
|
|||
size_t tableSize = static_cast<const T*>(this)->getTableSize();
|
||||
|
||||
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 y0 = table[i0];
|
||||
float dy = table[i0 + 1] - y0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue