Skip to content

Commit

Permalink
Allow clippy warnings for add implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Dec 14, 2024
1 parent 3cfaedc commit e33bd6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fields/x86_simd_large_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ impl Add<u8> for GF128 {
type Output = Self;

#[inline(always)]
#[allow(clippy::suspicious_arithmetic_impl)]
fn add(self, rhs: u8) -> Self::Output {
Self(unsafe {
_mm_xor_si128(
Expand Down Expand Up @@ -669,6 +670,7 @@ impl Add<u8> for GF192 {
type Output = Self;

#[inline(always)]
#[allow(clippy::suspicious_arithmetic_impl)]
fn add(self, rhs: u8) -> Self::Output {
Self(unsafe {
_mm256_xor_si256(
Expand Down Expand Up @@ -1123,6 +1125,7 @@ impl Add<u8> for GF256 {
type Output = Self;

#[inline(always)]
#[allow(clippy::suspicious_arithmetic_impl)]
fn add(self, rhs: u8) -> Self::Output {
Self(unsafe {
_mm256_xor_si256(
Expand Down

0 comments on commit e33bd6f

Please sign in to comment.