google / google/highway

NaN propagation in exponential function

Open
#1,016 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.8k
Forks
471
Avg merge
1d 6h
Merged PRs (30d)
81

Description

When applying the `Exp` function to `NaN` on my CPU (Intel i7-1185G7 using the AVX3_DL target) the function returns `0.0` instead of the `NaN` that I expected (and that `std::exp` returns).

Is this a bug or performance-related feature of the highway `Exp` function?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.