diff options
author | Jason A. Donenfeld | 2022-05-06 23:19:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2022-05-18 15:53:52 +0200 |
commit | 791332b3cbb080510954a4c152ce02af8832eac9 (patch) | |
tree | 21304b6f424e391064c601af2d4caf8369d6fc0c /lib/mpi | |
parent | e3e33fc2ea7fcefd0d761db9d6219f83b4248f5c (diff) |
random: help compiler out with fast_mix() by using simpler arguments
Now that fast_mix() has more than one caller, gcc no longer inlines it.
That's fine. But it also doesn't handle the compound literal argument we
pass it very efficiently, nor does it handle the loop as well as it
could. So just expand the code to spell out this function so that it
generates the same code as it did before. Performance-wise, this now
behaves as it did before the last commit. The difference in actual code
size on x86 is 45 bytes, which is less than a cache line.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions