Use vclampf(value, low, high) whereever possible, #4942

This commit is contained in:
heckflosse
2018-11-05 19:50:24 +01:00
parent 8a31f0368c
commit b8af63bb04
7 changed files with 28 additions and 27 deletions

View File

@@ -1252,7 +1252,7 @@ float* RawImageSource::CA_correct_RT(
vfloat factors = oldvals / newvals;
factors = vself(vmaskf_le(newvals, onev), onev, factors);
factors = vself(vmaskf_le(oldvals, onev), onev, factors);
STVFU((*nonGreen)[i/2][j/2], LIMV(factors, zd5v, twov));
STVFU((*nonGreen)[i/2][j/2], vclampf(factors, zd5v, twov));
}
#endif
for (; j < W - 2 * cb; j += 2) {