]>
git.proxmox.com Git - rustc.git/blob - src/stdsimd/coresimd/ppsv/api/partial_eq.rs
1 //! Implements `PartialEq` for vector types.
3 macro_rules
! impl_partial_eq
{
5 impl PartialEq
<$id
> for $id
{
7 fn eq(&self, other
: &Self) -> bool
{
8 $id
::eq(*self, *other
).all()
11 fn ne(&self, other
: &Self) -> bool
{
12 $id
::ne(*self, *other
).all()
20 macro_rules
! test_partial_eq
{
21 ($id
:ident
, $
true:expr
, $
false:expr
) => {
24 use ::coresimd
::simd
::*;
26 let a
= $id
::splat($
false);
27 let b
= $id
::splat($
true);