Skip to content

Commit 3353a68

Browse files
committed
Proof of Concept for outlined RawTable
1 parent 454d208 commit 3353a68

File tree

3 files changed

+175
-104
lines changed

3 files changed

+175
-104
lines changed

src/raw/generic.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,6 @@ impl Group {
5353
/// Number of bytes in the group.
5454
pub const WIDTH: usize = mem::size_of::<Self>();
5555

56-
/// Returns a full group of empty bytes, suitable for use as the initial
57-
/// value for an empty hash table.
58-
///
59-
/// This is guaranteed to be aligned to the group size.
60-
#[inline]
61-
pub fn static_empty() -> &'static [u8] {
62-
union AlignedBytes {
63-
_align: Group,
64-
bytes: [u8; Group::WIDTH],
65-
};
66-
const ALIGNED_BYTES: AlignedBytes = AlignedBytes {
67-
bytes: [EMPTY; Group::WIDTH],
68-
};
69-
unsafe { &ALIGNED_BYTES.bytes }
70-
}
71-
7256
/// Loads a group of bytes starting at the given address.
7357
#[inline]
7458
#[allow(clippy::cast_ptr_alignment)] // unaligned load

0 commit comments

Comments
 (0)