Skip to content

Commit ac92d7d

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 f6d5338 commit ac92d7d

File tree

1 file changed

+1
-1
lines changed
  • library/stdarch/crates/core_arch/src/powerpc

1 file changed

+1
-1
lines changed

library/stdarch/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)