commit | 53533922b12fec1dab3f4534d63d089483ffb97d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Aug 14 16:18:32 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Aug 16 14:16:32 2020 +0200 |
tree | 6b7a175c546e79fc667a55c6f6597e173de3105f | |
parent | a72442ddc90d8bdf52e355b529055b792d3f2b06 [diff] |
WIP: random32: generate the noise using less state Instead of keeping 4 words of state, we only combine input elements and keep a single word. This results in 3 xor, 2 add, 2 rol. The code is also smaller and suitable for being inlined, resulting in saving the previously lost performance.