Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/xxh3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ impl Xxh3Default {
((high as u128) << 64) | (low as u128)
}

#[inline]
///Computes hash.
pub fn digest(&self) -> u64 {
//Separating digest mid sized allows us to inline this function, which benefits
Expand All @@ -1057,6 +1058,7 @@ impl Xxh3Default {
}
}

#[inline]
///Computes hash as 128bit integer.
pub fn digest128(&self) -> u128 {
//Separating digest mid sized allows us to inline this function, which benefits
Expand Down Expand Up @@ -1205,6 +1207,7 @@ impl Xxh3 {
((high as u128) << 64) | (low as u128)
}

#[inline]
///Computes hash.
pub fn digest(&self) -> u64 {
//Separating digest mid sized allows us to inline this function, which benefits
Expand All @@ -1220,6 +1223,7 @@ impl Xxh3 {
}
}

#[inline]
///Computes hash as 128bit integer.
pub fn digest128(&self) -> u128 {
//Separating digest mid sized allows us to inline this function, which benefits
Expand Down
Loading