1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-09 14:10:09 +00:00

Fixed some clang v10 warnings in SHmath/XDSP

This commit is contained in:
Chuck Walbourn 2020-05-12 15:25:56 -07:00
parent 103b33d248
commit 939c94571b
3 changed files with 8 additions and 8 deletions

View File

@ -292,12 +292,12 @@ HRESULT DirectX::SHProjectCubeMap(
return E_FAIL;
}
const float v = y * fS + fB;
const float v = float(y) * fS + fB;
XMVECTOR* pixel = ptr;
for (UINT x = 0; x < desc.Width; ++x, ++pixel)
{
const float u = x * fS + fB;
const float u = float(x) * fS + fB;
float ix, iy, iz;
switch (face)

View File

@ -252,12 +252,12 @@ HRESULT DirectX::SHProjectCubeMap(
return E_FAIL;
}
const float v = y * fS + fB;
const float v = float(y) * fS + fB;
XMVECTOR* pixel = ptr;
for (UINT x = 0; x < desc.Width; ++x, ++pixel)
{
const float u = x * fS + fB;
const float u = float(x) * fS + fB;
float ix, iy, iz;
switch (face)

View File

@ -447,7 +447,7 @@ namespace XDSP
// initialize unity table for recursive FFT lengths: uLength, uLength/4, uLength/16... > 16
do
{
float flStep = 6.283185307f / uLength; // 2PI / FFT length
float flStep = 6.283185307f / float(uLength); // 2PI / FFT length
uLength >>= 2;
// pUnityTable[0 to uLength*4-1] contains real components for current FFT length
@ -550,7 +550,7 @@ namespace XDSP
_Analysis_assume_(uLength >= 4);
assert(ISPOWEROF2(uLength));
float flOneOverLength = 1.0f / uLength;
float flOneOverLength = 1.0f / float(uLength);
// result = sqrtf((real/uLength)^2 + (imaginary/uLength)^2) * 2
XMVECTOR vOneOverLength = XMVectorReplicate( flOneOverLength );
@ -756,8 +756,8 @@ namespace XDSP
const size_t uLength = size_t(1) << uLog2Length;
const XMVECTOR vRnp = XMVectorReplicate(1.0f/uLength);
const XMVECTOR vRnm = XMVectorReplicate(-1.0f/uLength);
const XMVECTOR vRnp = XMVectorReplicate(1.0f / float(uLength));
const XMVECTOR vRnm = XMVectorReplicate(-1.0f / float(uLength));
for (size_t u=0; u < uChannelCount*(uLength>>2); u++)
{
vRealTemp[u] = XMVectorMultiply(pReal[u], vRnp);