Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Provide a proper fenv implementation #114

Closed
erikdesjardins opened this issue Jul 15, 2018 · 3 comments
Closed

Provide a proper fenv implementation #114

erikdesjardins opened this issue Jul 15, 2018 · 3 comments

Comments

@erikdesjardins
Copy link
Contributor

See #106 (comment)

src/math/fenv.rs currently contains a dummy implementation of feraiseexcept, fegetround and friends. It should be properly implemented.

@erikdesjardins
Copy link
Contributor Author

erikdesjardins commented Jul 15, 2018

Aside: I feel like these tricks from fma ought to be able to replace some of the fenv usage in fmaf, but I don't understand the subtleties.

@hanna-kruppe
Copy link
Contributor

Floating point environment access is currently not supported by LLVM (see e.g. https://lists.llvm.org/pipermail/llvm-dev/2018-May/123529.html) so it won't be possible to provide fenv access in any code that is compiled by LLVM. (This affects the musl C code too if it's compiled by Clang.)

@tgross35
Copy link
Contributor

I am going to close this in favor of a more meta discussion at rust-lang/compiler-builtins#842.

@tgross35 tgross35 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants