diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 04:23:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 04:23:23 +0200 |
commit | 20f48d898738c2e5deaa1105292ffd1641b243d5 (patch) | |
tree | 3bdf54926d114a265aa6f52cf1a01c7703328ed3 /src/crypto/zinc/selftest/blake2s.c | |
parent | crypto: disable broken implementations in selftests (diff) | |
download | wireguard-monolithic-historical-20f48d898738c2e5deaa1105292ffd1641b243d5.tar.xz wireguard-monolithic-historical-20f48d898738c2e5deaa1105292ffd1641b243d5.zip |
crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1
Pros: clearer if you're not familiar with the shift idiom, uses kernel
macro.
Cons: doesn't work any more if the lvalue ever ceases to be a bool.
Neutral: generates the same machine code.
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Diffstat (limited to 'src/crypto/zinc/selftest/blake2s.c')
0 files changed, 0 insertions, 0 deletions