param out param a param b param c param num param so param sa param sb param sc export function clamp4_f32 ( out , a , b , c , num , so , sa , sb , sc ) { const res = out ; so <<= 2 ; sa <<= 2 ; sb <<= 2 ; sc <<= 2 ; for ( ; num -- > 0 ; ) { v128 . store ( out , f32x4 . min ( f32x4 . max ( v128 . load ( a ) , v128 . load ( b ) ) , v128 . load ( c ) ) ) ; out += so ; a += sa ; b += sb ; c += sc ; } return res ; } export function clampn4_f32 ( out , a , b , c , num , so , sa ) { const res = out ; so <<= 2 ; sa <<= 2 ; const vmin = f32x4 . splat ( b ) ; const vmax = f32x4 . splat ( c ) ; for ( ; num -- > 0 ; ) { v128 . store ( out , f32x4 . min ( f32x4 . max ( v128 . load ( a ) , vmin ) , vmax ) ) ; out += so ; a += sa ; } return res ; }