Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::fma ? #2

Open
nestordemeure opened this issue May 3, 2018 · 0 comments
Open

Use std::fma ? #2

nestordemeure opened this issue May 3, 2018 · 0 comments

Comments

@nestordemeure
Copy link

nestordemeure commented May 3, 2018

Hello,

For floating point types, the standard implementation of std::fma guarantees that it :

Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.

In practice it uses an FMA instruction when available or an algorithm similar to your handmade implementation.

Wouldn't it make sense to use it in libeft (avoiding the dependency on intrinsics) ?

Cordially,
Nestor Demeure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant