You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #2358 - hcsch:add-strtof, r=JohnTitor
Add `strtof` for all platforms that have `strtod`
All platforms that have `strtod` very likely also have `strtof`. Having `strtof` allows for fuzzing of [`hexf-parse::parse_hexf32`](https://github.com/lifthrasiir/hexf) comparing against `strtof`, which can't (easily) be done with `strtod`, due to float rounding and over-/underflow behavior.
I'm unsure of whether the `strtof` declaration in `src/unix/mod.rs` also needs a link name adjustment for x86 macos. I haven't been able to find anything about this after a rough search in this repo and on Google. I haven't added it for now since only `strtod` (edit: out of the `strtoX` functions) seems to have the changed link name (and I don't have a mac handy to test the available symbols with), but feel free to tell me if it's needed and I'll adjust the PR accordingly.
0 commit comments