Skip to content

Commit

Permalink
Add the boolean types for vec_nor
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero authored and Amanieu committed Jan 29, 2024
1 parent 77285f9 commit fc34d9a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/core_arch/src/powerpc/altivec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2346,17 +2346,14 @@ mod sealed {
vector_vnor! { vec_vnorsb i8 }
vector_vnor! { vec_vnorsh i16 }
vector_vnor! { vec_vnorsw i32 }
vector_vnor! { vec_vnorub u8 }
vector_vnor! { vec_vnoruh u16 }
vector_vnor! { vec_vnoruw u32 }

#[unstable(feature = "stdarch_powerpc", issue = "111145")]
pub trait VectorNor<Other> {
type Result;
unsafe fn vec_nor(self, b: Other) -> Self::Result;
}

impl_vec_trait! { [VectorNor vec_nor] 2 (vec_vnorub, vec_vnorsb, vec_vnoruh, vec_vnorsh, vec_vnoruw, vec_vnorsw) }
impl_vec_trait! { [VectorNor vec_nor]+ 2b (vec_vnorsb, vec_vnorsh, vec_vnorsw) }

#[inline]
#[target_feature(enable = "altivec")]
Expand Down

0 comments on commit fc34d9a

Please sign in to comment.