Skip to content

Commit

Permalink
Merge pull request #54 from AndersTrier/AndersTrier/engines_copy
Browse files Browse the repository at this point in the history
Engines: derive Copy
  • Loading branch information
AndersTrier authored Oct 10, 2024
2 parents 757168c + f9688b2 commit a39dbea
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/engine/engine_avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::engine::{
/// [`NoSimd`] but takes advantage of the x86 AVX2 SIMD instructions.
///
/// [`NoSimd`]: crate::engine::NoSimd
#[derive(Clone)]
#[derive(Clone, Copy)]
pub struct Avx2 {
mul128: &'static Mul128,
skew: &'static Skew,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/engine_naive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::engine::{
/// the source code to understand [`Engine`].
/// - [`Naive`] also includes some debug assertions
/// which are not present in other implementations.
#[derive(Clone)]
#[derive(Clone, Copy)]
pub struct Naive {
exp: &'static Exp,
log: &'static Log,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/engine_neon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::iter::zip;
/// [`NoSimd`] but takes advantage of the Arm Neon SIMD instructions.
///
/// [`NoSimd`]: crate::engine::NoSimd
#[derive(Clone)]
#[derive(Clone, Copy)]
pub struct Neon {
mul128: &'static Mul128,
skew: &'static Skew,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/engine_nosimd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::engine::{
/// Optimized [`Engine`] without SIMD.
///
/// [`NoSimd`] is a basic optimized engine which works on all CPUs.
#[derive(Clone)]
#[derive(Clone, Copy)]
pub struct NoSimd {
mul16: &'static Mul16,
skew: &'static Skew,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/engine_ssse3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::engine::{
/// [`NoSimd`] but takes advantage of the x86 SSSE3 SIMD instructions.
///
/// [`NoSimd`]: crate::engine::NoSimd
#[derive(Clone)]
#[derive(Clone, Copy)]
pub struct Ssse3 {
mul128: &'static Mul128,
skew: &'static Skew,
Expand Down

0 comments on commit a39dbea

Please sign in to comment.