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

micromath feature to avoid libm on embedded platforms #68

Open
zesterer opened this issue Feb 17, 2021 · 2 comments
Open

micromath feature to avoid libm on embedded platforms #68

zesterer opened this issue Feb 17, 2021 · 2 comments

Comments

@zesterer
Copy link
Contributor

libm is not supported on several embedded platforms. micromath might be a viable and more portable alternative. A feature flag to enable its usage would improve portability.

@zesterer
Copy link
Contributor Author

On second thoughts, it looks like this still wouldn't work with num_traits. That's a shame. It means that it's up to libm to support more platforms.

@yoanlcq
Copy link
Owner

yoanlcq commented Feb 18, 2021

Yes, I believe micromath would need some changes in order to be usable here, or at least, in a way that doesn't require rewriting vek not to depend on num-traits.
Its F32Ext trait is almost like num_traits::Float. For some reason it is not implemented for f64.

I'm all for more portability but I think there's some work to do in the micromath side for that, and even so I'm not sure if vek is really problem solved for embedded systems, since these may have exotic requirements I was not aware of.

If someone really needs that, a good approach IMO could be to fork vek, experiment and break stuff to see how it goes. If it ends up working well, then I would be fine merging that.

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

2 participants