rust-lang / libm

A port of MUSL's libm to Rust.
Other
548 stars 97 forks source link

Move arch-specific behavior and intrinsics to a separate module #316

Closed tgross35 closed 4 weeks ago

tgross35 commented 1 month ago

Introduce math/arch/* as a home for architecture-specific behavior and intrinsic usage, and move relevant existing code there.

This allows us to declutter things a bit and also commonize the logic of cfg flags so we don't accidentally disobey force-soft-floats.

tgross35 commented 4 weeks ago

The commit history is a mess so please don't merge directly, but this is ready for a look. The diff makes a lot more sense with "hide whitespace" checked.