mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 19:48:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -450,7 +450,7 @@ public sealed class Sma : AbstractBase
|
||||
}
|
||||
|
||||
var vInvPeriod = Vector512.Create(invPeriod);
|
||||
int simdEnd = period + (len - period) / VectorWidth * VectorWidth;
|
||||
int simdEnd = period + ((len - period) / VectorWidth * VectorWidth);
|
||||
|
||||
for (int i = period; i < simdEnd; i += VectorWidth)
|
||||
{
|
||||
@@ -517,7 +517,7 @@ public sealed class Sma : AbstractBase
|
||||
|
||||
var vInvPeriod = Vector256.Create(invPeriod);
|
||||
var vZero = Vector256<double>.Zero;
|
||||
int simdEnd = period + (len - period) / VectorWidth * VectorWidth;
|
||||
int simdEnd = period + ((len - period) / VectorWidth * VectorWidth);
|
||||
|
||||
for (int i = period; i < simdEnd; i += VectorWidth)
|
||||
{
|
||||
@@ -581,7 +581,7 @@ public sealed class Sma : AbstractBase
|
||||
}
|
||||
|
||||
var vInvPeriod = Vector128.Create(invPeriod);
|
||||
int simdEnd = period + (len - period) / VectorWidth * VectorWidth;
|
||||
int simdEnd = period + ((len - period) / VectorWidth * VectorWidth);
|
||||
|
||||
for (int i = period; i < simdEnd; i += VectorWidth)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user