Skip to content

Commit 0d0ff74

Browse files
folkertdevAmanieu
authored andcommitted
use llvm.nearbyint.v4f32 for rounding
see https://godbolt.org/z/Wx1KWezbe to see that these in fact generate equivalent assembly
1 parent 80eb4c9 commit 0d0ff74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ unsafe extern "C" {
382382
#[link_name = "llvm.ppc.altivec.vrlw"]
383383
fn vrlw(a: vector_signed_int, c: vector_unsigned_int) -> vector_signed_int;
384384

385-
#[link_name = "llvm.ppc.altivec.vrfin"]
385+
#[link_name = "llvm.nearbyint.v4f32"]
386386
fn vrfin(a: vector_float) -> vector_float;
387387
}
388388

0 commit comments

Comments
 (0)