Skip to content

Commit

Permalink
more offset methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah committed May 23, 2024
1 parent 619937a commit 488d14b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pulp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3362,6 +3362,19 @@ impl<Mask> Offset<Mask> {
pub fn simd_body_len(&self) -> usize {
self.simd_body_len
}
#[inline(always)]
pub fn prefix_len(&self) -> usize {
self.prefix_len
}
#[inline(always)]
pub fn suffix_len(&self) -> usize {
self.suffix_len
}

#[inline(always)]
pub fn len(&self) -> usize {
self.total_len
}
}

impl<Mask: Copy> Clone for Offset<Mask> {
Expand Down

0 comments on commit 488d14b

Please sign in to comment.