We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894fe28 commit 0611a8cCopy full SHA for 0611a8c
crates/core_arch/src/powerpc/altivec.rs
@@ -534,8 +534,8 @@ mod sealed {
534
#[inline]
535
#[target_feature(enable = "altivec")]
536
#[cfg_attr(test, assert_instr(lvxl))]
537
- pub unsafe fn $fun_lru(off: i32, p: *const $ty) -> t_t_l!($ty) {
538
- let addr = (p as *const i8).offset(off as isize);
+ pub unsafe fn $fun_lru(off: isize, p: *const $ty) -> t_t_l!($ty) {
+ let addr = (p as *const i8).offset(off);
539
transmute(lvxl(addr))
540
}
541
@@ -550,7 +550,7 @@ mod sealed {
550
551
552
unsafe fn vec_ldl(self, off: isize) -> Self::Result {
553
- $fun(off, self)
+ $fun_lru(off, self)
554
555
556
};
0 commit comments