copy PartialEq impl from F32x4 (#546)

This commit is contained in:
Tails 2023-09-30 14:30:10 +02:00 committed by GitHub
parent b01bbcc0d0
commit a3ceb814ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -233,6 +233,13 @@ impl Sub<F32x2> for F32x2 {
}
}
impl PartialEq for F32x2 {
#[inline]
fn eq(&self, other: &F32x2) -> bool {
self.packed_eq(*other).all_true()
}
}
// Four 32-bit floats
#[derive(Clone, Copy)]