|
|
|
|
|
by gameswithgo
2428 days ago
|
|
yes, this is all purely down to Rust not doing ffast-math (on purpose) writing a wrapper is not trivial, at all. what Rust could do though, is add a wrapped float type, that the compiler will forward to llvm saying "you can ffast-math these" That is the approach Rust tends to take for these kinds of things, though no plans are in the works to do this to make floats vectorizeable yet. Maybe we should start such plans? |
|
It's worth explaining why. So far as I understand the situation, dependencies may assume and depend on the absence of ffast-math. Enabling it globally for a compilation is generally considered to be a footgun for this reason.