Skip to content

Commit 25014b5

Browse files
rustc_data_structures: Add implementation of 128 bit SipHash.
1 parent abe7c87 commit 25014b5

File tree

3 files changed

+535
-0
lines changed

3 files changed

+535
-0
lines changed

src/libcore/hash/sip.rs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ struct Hasher<S: Sip> {
7272
}
7373

7474
#[derive(Debug, Clone, Copy)]
75+
#[repr(C)]
7576
struct State {
7677
// v0, v2 and v1, v3 show up in pairs in the algorithm,
7778
// and simd implementations of SipHash will use vectors

src/librustc_data_structures/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub mod graph;
5454
pub mod indexed_set;
5555
pub mod indexed_vec;
5656
pub mod obligation_forest;
57+
pub mod sip128;
5758
pub mod snapshot_map;
5859
pub mod snapshot_vec;
5960
pub mod stable_hasher;

0 commit comments

Comments
 (0)