DoxigAlpha

init

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn init() Self {
    const initial = if (algorithm.reflect_input)
        @bitReverse(@as(I, algorithm.initial)) >> (@bitSizeOf(I) - @bitSizeOf(W))
    else
        @as(I, algorithm.initial) << (@bitSizeOf(I) - @bitSizeOf(W));
    return Self{ .crc = initial };
}