You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Given a byte array of arbitrary length, this function can be used to multiply each
22
+
/// byte element with a single specific scalar, over GF(2^8), mutating the input vector.
23
+
///
24
+
/// In case this function runs on `x86_64` with `avx2` or `ssse3` features, it can use
25
+
/// lookup-table assisted SIMD multiplication, inspired from https://github.com/ceph/gf-complete/blob/a6862d10c9db467148f20eef2c6445ac9afd94d8/src/gf_w8.c#L1029-L1037.
26
+
///
27
+
/// You have to build with `RUSTFLAGS="-C target-cpu=native"` flag to enjoy full benefits of compiler optimization.
28
+
///
29
+
/// I originally discovered this technique in https://www.snia.org/sites/default/files/files2/files2/SDC2013/presentations/NewThinking/EthanMiller_Screaming_Fast_Galois_Field%20Arithmetic_SIMD%20Instructions.pdf.
/// Given a byte array of arbitrary length, this function can be used to multiply each
101
-
/// byte element with a single specific scalar, over GF(2^8), returning resulting vector.
102
-
///
103
-
/// In case this function runs on `x86_64` with `avx2` or `ssse3` features, it can use
104
-
/// lookup-table assisted SIMD multiplication, inspired from https://github.com/ceph/gf-complete/blob/a6862d10c9db467148f20eef2c6445ac9afd94d8/src/gf_w8.c#L1029-L1037.
105
-
///
106
-
/// You have to build with `RUSTFLAGS="-C target-cpu=native -C target-feature=+avx2,+ssse3"`flag
107
-
/// to enjoy full benefits of compiler optimization.
108
-
///
109
-
/// I originally discovered this technique in https://www.snia.org/sites/default/files/files2/files2/SDC2013/presentations/NewThinking/EthanMiller_Screaming_Fast_Galois_Field%20Arithmetic_SIMD%20Instructions.pdf.
0 commit comments