mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 01:35:38 +00:00
Apparently rand() returns zero too. Avoid that.
This commit is contained in:
parent
42e75a5e4c
commit
1aa62003b9
|
@ -504,9 +504,8 @@ static uint32 PowerIteration(const RGBAMatrix &mat, RGBADir &eigVec, double &eig
|
||||||
for(int nTries = 0; nTries < 3; nTries++) {
|
for(int nTries = 0; nTries < 3; nTries++) {
|
||||||
// !SPEED! Find eigenvectors by using the power method. This is good because the
|
// !SPEED! Find eigenvectors by using the power method. This is good because the
|
||||||
// matrix is only 4x4, which allows us to use SIMD...
|
// matrix is only 4x4, which allows us to use SIMD...
|
||||||
RGBAVector b = RGBAVector(float(rand()));
|
RGBAVector b = RGBAVector(float(rand()) + 1.0f);
|
||||||
assert(b.Length() > 0);
|
b /= b.Length();
|
||||||
b /= b.Length();
|
|
||||||
|
|
||||||
bool fixed = false;
|
bool fixed = false;
|
||||||
numIterations = 0;
|
numIterations = 0;
|
||||||
|
|
Loading…
Reference in a new issue