Skip to content

Commit

Permalink
Tables: Mul128: Use 'u128::from_le_bytes' instead of bytemuck::cast
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersTrier committed Jul 8, 2024
1 parent f20516a commit 9e03c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ pub fn initialize_mul128() -> &'static Mul128 {
prod_lo[x] = prod as u8;
prod_hi[x] = (prod >> 8) as u8;
}
mul128[log_m as usize].lo[i] = bytemuck::cast(prod_lo);
mul128[log_m as usize].hi[i] = bytemuck::cast(prod_hi);
mul128[log_m as usize].lo[i] = u128::from_le_bytes(prod_lo);
mul128[log_m as usize].hi[i] = u128::from_le_bytes(prod_hi);
}
}

Expand Down

0 comments on commit 9e03c2f

Please sign in to comment.