Skip to content

reimplement fmaf #845

New issue

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

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

Already on GitHub? # to your account

Open
japaric opened this issue Jul 27, 2018 · 1 comment
Open

reimplement fmaf #845

japaric opened this issue Jul 27, 2018 · 1 comment
Labels
libm Issues relating to libm

Comments

@japaric
Copy link
Member

japaric commented Jul 27, 2018

to not use any f64 operation.

Rationale: the current implementation makes use of f64 and it has bad performance on architectures that have no hardware support for double precision floats.

Both the MUSL and newlib implementations use f64 ops internally. We'll need to find some other implementation or come up with one ourselves.

What needs to be done:

Move the existing MUSL port into a private math::musl module and make sure we continue compiling it.
Write the new implementation into src/math/$fun.rs
Write a new test generator for this function.
@tgross35
Copy link
Contributor

tgross35 commented Jan 6, 2025

As an update, I am adding generic implementations which will avoid using the same-sized float.

@tgross35 tgross35 transferred this issue from rust-lang/libm Apr 19, 2025
@tgross35 tgross35 added the libm Issues relating to libm label Apr 19, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
libm Issues relating to libm
Projects
None yet
Development

No branches or pull requests

2 participants