summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/poly1305
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-07 04:23:23 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-07 04:23:23 +0200
commit214cc189aad68868c0ac390dc12981747bbbb858 (patch)
tree32f0feee8c954588c154098eb539e3e05b2c9eb4 /src/crypto/zinc/poly1305
parent2d9f583e5ceb3ec38b28678d935c107a339cf6cd (diff)
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> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/poly1305')
0 files changed, 0 insertions, 0 deletions