Absolute value: pure arithmetic; libm path unnecessary, same on both.
| 353 | |
| 354 | // Absolute value: pure arithmetic; libm path unnecessary, same on both. |
| 355 | float fabs_impl_float(float value) { |
| 356 | return value < 0.0f ? -value : value; |
| 357 | } |
| 358 | |
| 359 | double fabs_impl_double(double value) { |
| 360 | return value < 0.0 ? -value : value; |