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

Implement floor() using libm #272

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Implement floor() using libm #272

merged 1 commit into from
Sep 25, 2023

Conversation

ellishg
Copy link
Contributor

@ellishg ellishg commented Sep 23, 2023

I hit this exception when trying to connect to wifi on an esp32-c6. libm implements the floor function, so let's add that dependency and use it here.

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, odd that RISCV targets don't get the intrinsics emitted from compiler builtins. For some reason they were left out: https://github.com/rust-lang/compiler-builtins/blob/88e2147a0b618990e69e1dfa4a2c41ef46843a02/src/math.rs#L126-L139? Thats probably a bug.

I see no real harm in this PR though, so LGTM

@bjoernQ
Copy link
Contributor

bjoernQ commented Sep 25, 2023

Interesting floor never got called for me

@bjoernQ bjoernQ merged commit 16afb0f into esp-rs:main Sep 25, 2023
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

Successfully merging this pull request may close these issues.

3 participants