mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
MathUtil: Convert Clamp into a constexpr function
This commit is contained in:
parent
c5685ba53a
commit
b9e360df7b
13 changed files with 43 additions and 70 deletions
|
@ -134,7 +134,8 @@ static float* DesignFIR(unsigned int *n, float* fc, float opt)
|
|||
// Sanity check
|
||||
if (*n == 0)
|
||||
return nullptr;
|
||||
MathUtil::Clamp(&fc[0], float(0.001), float(1));
|
||||
|
||||
fc[0] = MathUtil::Clamp(fc[0], 0.001f, 1.0f);
|
||||
|
||||
float *w = (float*)calloc(sizeof(float), *n);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue