convention tweaks
This commit is contained in:
parent
346954f263
commit
b2139100df
3
src/external/rlsw.h
vendored
3
src/external/rlsw.h
vendored
|
|
@ -1087,7 +1087,8 @@ static inline void sw_float_to_unorm8_simd(uint8_t dst[4], const float src[4])
|
|||
*(uint32_t*)dst = _mm_cvtsi128_si32(clamped);
|
||||
|
||||
#else
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
float val = src[i]*255.0f;
|
||||
val = (val > 255.0f)? 255.0f : val;
|
||||
val = (val < 0.0f)? 0.0f : val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user