Browse Source

Add default arguments to simd::clamp().

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
2e34cdf497
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/simd/functions.hpp

+ 1
- 1
include/simd/functions.hpp View File

@@ -250,7 +250,7 @@ T pow(T a, int b) {


using math::clamp; using math::clamp;


inline float_4 clamp(float_4 x, float_4 a, float_4 b) {
inline float_4 clamp(float_4 x, float_4 a = 0.f, float_4 b = 1.f) {
return fmin(fmax(x, a), b); return fmin(fmax(x, a), b);
} }




Loading…
Cancel
Save