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

no_std mode? #3

Closed
ajtribick opened this issue May 3, 2020 · 1 comment
Closed

no_std mode? #3

ajtribick opened this issue May 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ajtribick
Copy link
Owner

Currently blocked by rust-lang/libm#242

@ajtribick ajtribick added the enhancement New feature or request label May 3, 2020
@ajtribick ajtribick mentioned this issue May 3, 2020
joseluis added a commit to joseluis/twofloat that referenced this issue Mar 11, 2022
- add default "std" feature.
- only impl `std::error::Error` when "std" is enabled.
- change `std::mem` to `core::mem` references.
@joseluis
Copy link
Contributor

Now that it seems the libm issue has been resolved I took a stab at implementing this at #8.

joseluis added a commit to joseluis/twofloat that referenced this issue Nov 22, 2022
- add default "std" feature.
- only impl `std::error::Error` when "std" is enabled.
- change `std::mem` to `core::mem` references.
- add `libm` optional dependency.
- new `Math` struct wrapper for `f64` operations that uses `libm` if enabled, or `std` otherwise.
- update all calls to `f64` math operations to use the `Math` wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants