Stream: project-inline-asm

Topic: Sqrt

Lokathor (Dec 16 2019 at 22:34, on Zulip):

(In the "WebAssembly" topic I mentioned offhand that the sqrt intrinsic has problems with becoming stabilized, and @Josh Triplett wanted to know more, but I didn't want to have a tangent in that thread, so I'm pre-emptively forking it to a new thread.)

Basically we could just stabilize the intrinsic, but people are "supposed" to call it via the f32 method, but we can't put that method into core because we can't ensure that the compiler-builtins crate provides a sqrt function implementation exactly when needed because we don't have LLVM's hard-float/soft-float concepts as target_features within Rust.

Josh Triplett (Dec 17 2019 at 00:16, on Zulip):

Is there any fundamental reason we can't just stabilize the intrinsic anyway? Doesn't have to be the "preferred" interface.

Lokathor (Dec 17 2019 at 01:06, on Zulip):

Not that I know of.

Lokathor (Dec 17 2019 at 01:07, on Zulip):

Would be a simple RFC

Last update: Jul 02 2020 at 19:50UTC