Crate eight_bytes

Crate eight_bytes 

Source
Expand description

Implements “SIMD-like” operations over vectors of eight u8 values represented internally as single u64 values, using bit-fidding tricks to perform the same operation on all eight bytes at once.

These techniques are sometimes described as SWAR (SIMD within a register). However, that term can also sometimes refer to the use of a CPU architecture’s specialized SIMD instructions.

The API is designed to loosely follow the conventions of the Rust standard library’s portable SIMD module, but only to a limited extent. There is no explicit interop between the two.

This library is no_std-compatible and intended for CPU architectures that can perform arithmetic operations efficiently on 64-bit values.

Structs§

mask8x8
A vector of eight bool values, which can have SIMD-like operations applied to them without any explicit SIMD instructions.
u8x8
A vector of eight u8 values, which can have SIMD-like operations applied to them without any explicit SIMD instructions.