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

enable cos and sin on no_std builds #283

Open
wucke13 opened this issue Feb 18, 2022 · 4 comments
Open

enable cos and sin on no_std builds #283

wucke13 opened this issue Feb 18, 2022 · 4 comments

Comments

@wucke13
Copy link

wucke13 commented Feb 18, 2022

Currently sin and cos functions are disabled on no_std. These are common functions which are easily available through libm, so it makes sense to expose them.

@iliekturtles
Copy link
Owner

They are currently disabled because the underlying implementations aren't available in core::f32 like they are in std::f32. Is there some way to use libm easily for no_std?

@adamreichold
Copy link
Contributor

I think the libm crate can be used in no_std environments as it is a pure Rust reimplementation of MUSL's libm.

@wucke13
Copy link
Author

wucke13 commented Feb 18, 2022

Yes, further on there is a libm feature in num, which can be easily used since num is a dependency already

wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 8, 2022
@wucke13
Copy link
Author

wucke13 commented Jun 8, 2022

@iliekturtles Any chance that you take you fix this?

wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 8, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 8, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 8, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 8, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 9, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 9, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Jun 9, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Sep 2, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Sep 3, 2022
wucke13 pushed a commit to wucke13/uom that referenced this issue Oct 18, 2022
sevenautumns pushed a commit to wucke13/uom that referenced this issue Sep 18, 2024
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

3 participants