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
core: Use __jcvt() intrinsic on AArch64 for f64→i32 conversion
In ruffle-rs#21780, an optimisation has been added to use the fjcvtzs ARMv8.3
instruction when available, to convert a f64 into an i32. This made me
wonder why core::arch::aarch64 didn’t have an intrinsic for this
instruction, so I implemented it in stdarch[1], which got pulled in Rust
yesterday[2] (see the tracking issue[3]).
This PR makes use of this new intrinsic to remove the unsafe asm!()
block, and simplify the code.
[1] rust-lang/stdarch#1938
[2] rust-lang/rust#148402
[3] rust-lang/rust#147555
0 commit comments