You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 16 Jul, 2019, at 4:35 PM, Chris Jones ***@***.***> wrote:
It looks like the simplest solution would be to check the bounds of initial_x at the beginning of the function, instead of at the end:
https://github.com/dpiparo/vdt/blob/master/include/exp.h#L147
and return immediately.
will not vectorize
at best
x = (initial_x < details::MINLOGF) ? details::MINLOGF : initial_x;
or std::max(initial_x, details::MINLOGF);
same for the positive overflow
While using VDT while using the gcc undefined behavior compiles flag, we get the report
Which is
https://github.com/dpiparo/vdt/blob/master/include/exp.h#L144
The happens when calling
vdt::fast_expf
with the valueThe C++ standard does say that left shifting a negative number is undefined.
The text was updated successfully, but these errors were encountered: