1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-02 07:20:34 +00:00

(gfx/scaler) Get rid of some unnecessary ifs

This commit is contained in:
twinaphex 2014-09-03 06:18:19 +02:00
parent 46b6b112b8
commit 8fdf7299f6
2 changed files with 2 additions and 4 deletions

@ -25,7 +25,6 @@ static inline uint8_t clamp_8bit(int val)
return 255;
else if (val < 0)
return 0;
else
return (uint8_t)val;
}

@ -101,7 +101,6 @@ static inline double filter_sinc(double phase)
{
if (fabs(phase) < 0.0001)
return 1.0;
else
return sin(phase) / phase;
}