Skip to content

Commit 5dc77bc

Browse files
committed
Formatting
1 parent e72512f commit 5dc77bc

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

testable-simd-models/src/abstractions/bit.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ macro_rules! generate_umachine_integer_impls {
184184
generate_imachine_integer_impls!(i8, i16, i32, i64, i128);
185185
generate_umachine_integer_impls!(u8, u16, u32, u64, u128);
186186

187-
188187
impl Bit {
189188
fn of_raw_int(x: u128, nth: u32) -> Self {
190189
if x / 2u128.pow(nth) % 2 == 1 {

testable-simd-models/src/abstractions/bitvec.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use super::funarr::*;
44

55
use std::fmt::Formatter;
66

7-
87
// TODO: this module uses `u128/i128` as mathematic integers. We should use `hax_lib::int` or bigint.
98

109
/// A fixed-size bit vector type.
@@ -36,14 +35,12 @@ fn bit_slice_to_string(bits: &[Bit]) -> String {
3635
.into()
3736
}
3837

39-
4038
impl<const N: u64> core::fmt::Debug for BitVec<N> {
4139
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), std::fmt::Error> {
4240
write!(f, "{}", bit_slice_to_string(&self.0.as_vec()))
4341
}
4442
}
4543

46-
4744
impl<const N: u64> core::ops::Index<u64> for BitVec<N> {
4845
type Output = Bit;
4946
fn index(&self, index: u64) -> &Self::Output {
@@ -120,14 +117,11 @@ impl<const N: u64> BitVec<N> {
120117
}
121118
}
122119

123-
124120
impl<const N: u64> BitVec<N> {
125-
126121
pub fn chunked_shift<const CHUNK: u64, const SHIFTS: u64>(
127122
self,
128123
shl: FunArray<SHIFTS, i128>,
129124
) -> BitVec<N> {
130-
131125
fn chunked_shift<const N: u64, const CHUNK: u64, const SHIFTS: u64>(
132126
bitvec: BitVec<N>,
133127
shl: FunArray<SHIFTS, i128>,

testable-simd-models/src/abstractions/funarr.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ impl<const N: u64, T> FunArray<N, T> {
5252
}
5353
}
5454

55-
5655
impl<const N: u64, T: Clone> TryFrom<Vec<T>> for FunArray<N, T> {
5756
type Error = ();
5857
fn try_from(v: Vec<T>) -> Result<Self, ()> {
@@ -64,17 +63,15 @@ impl<const N: u64, T: Clone> TryFrom<Vec<T>> for FunArray<N, T> {
6463
}
6564
}
6665

67-
6866
impl<const N: u64, T: core::fmt::Debug + Clone> core::fmt::Debug for FunArray<N, T> {
6967
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7068
write!(f, "{:?}", self.as_vec())
7169
}
7270
}
7371

74-
7572
impl<const N: u64, T> core::ops::Index<u64> for FunArray<N, T> {
7673
type Output = T;
77-
74+
7875
fn index(&self, index: u64) -> &Self::Output {
7976
self.get(index)
8077
}

0 commit comments

Comments
 (0)