Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew committed Aug 18, 2024
1 parent b75ba68 commit 78249e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# based64
11 changes: 4 additions & 7 deletions src/encode.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
use std::arch::wasm32::{
i16x8_extend_high_u8x16, u16x8_add, u16x8_extend_low_u8x16, u16x8_mul, u16x8_shl, u8x16_ge,
u8x16_shr, u8x16_shuffle, u8x16_splat, u8x16_sub, u8x16_sub_sat, u8x16_swizzle, v128, v128_and,
v128_or,
i16x8_extend_high_u8x16, u16x8_add, u16x8_extend_low_u8x16, u16x8_shl, u8x16_ge, u8x16_shr,
u8x16_shuffle, u8x16_splat, u8x16_sub, u8x16_sub_sat, u8x16_swizzle, v128, v128_and, v128_or,
};

use anyhow::Result;

use crate::impl_v128::{
u16x8_cycle, u16x8_to_array, u8x16_cycle, u8x16_load, u8x16_mask_splat, u8x16_to_array,
};
use crate::impl_v128::{u16x8_to_array, u8x16_cycle, u8x16_load, u8x16_mask_splat};

pub(super) fn encode(data: &[u8; 16]) -> Result<v128> {
let data = u8x16_load(data);
Expand Down Expand Up @@ -36,7 +33,7 @@ pub(super) fn encode(data: &[u8; 16]) -> Result<v128> {
// shifted >> u16x8_cycle(&[2, 4, 6, 8])
let pattern = [2, 4, 6, 8];

let (mut lo_shifted_arr, mut hi_shifted_arr) =
let (lo_shifted_arr, hi_shifted_arr) =
(u16x8_to_array(lo_shifted), u16x8_to_array(hi_shifted));

let mut sextets = [0u8; 16];
Expand Down

0 comments on commit 78249e6

Please sign in to comment.