]> git.bitcoin.ninja Git - rust-lightning/commit
Drop unnecessary SIMD subtraction in ChaCha20 `round`
authorMatt Corallo <git@bluematt.me>
Thu, 30 Nov 2023 23:35:43 +0000 (23:35 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 30 Nov 2023 23:35:43 +0000 (23:35 +0000)
commite0480b531d4814ef744aa89a4eaa7bc2f7420d33
treed37947093ee68ffcca8eae956cc641d1cd86bb12
parentf07f4b90f8de76d594328e11e36d094cdb936097
Drop unnecessary SIMD subtraction in ChaCha20 `round`

While its all constant arithmetic to calculate the shift, which
LLVM likely optimizes out for us, there's no reason to do it four
times, which just makes the code harder to read.
lightning/src/util/chacha20.rs