shibatch / sleef

SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
https://sleef.org
Boost Software License 1.0
637 stars 129 forks source link

Redundant use of dfadd_f2_f2_f ? #423

Open Remotion opened 3 years ago

Remotion commented 3 years ago

https://github.com/shibatch/sleef/blob/85440a5e87dae36ca1b891de14bc83b441ae7c43/src/libm/sleefsp.c#L1031

This line can be simplified to if (!o && d < 0) r = 3.1415927410125732422f - r;

shibatch commented 3 years ago

I will look into this.