rust-lang / libm

A port of MUSL's libm to Rust.
Other
540 stars 98 forks source link

Const eval support #261

Closed Liamolucko closed 2 years ago

Liamolucko commented 2 years ago

It seems like most of this crate's functions could safely become const fns, and it would be very helpful to be able to do floating-point operations in a const context.

Liamolucko commented 2 years ago

Ah, my mistake - I forgot that you can only do the basic floating point arithmetic in const declarations, not const fns. I understand this isn't really feasible yet.