From 67402eee42e54fb1f25f3b3fc23377dc11c91171 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 12 May 2016 17:46:13 +1000 Subject: [PATCH] c/xxtea: style --- crypto/xxtea.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/crypto/xxtea.cpp b/crypto/xxtea.cpp index 65dc47bd..81366ff6 100644 --- a/crypto/xxtea.cpp +++ b/crypto/xxtea.cpp @@ -29,12 +29,14 @@ static const unsigned ITERATIONS = 32; // each iteration performs two feistel ro //----------------------------------------------------------------------------- -static constexpr uint32_t mix (uint32_t Z, - uint32_t Y, - uint32_t S, - size_t E, - size_t P, - const uint32_t *restrict K) +static constexpr +uint32_t +mix (uint32_t Z, + uint32_t Y, + uint32_t S, + size_t E, + size_t P, + const uint32_t *restrict K) { return ((Z >> 5 ^ Y << 2) + (Y >> 3 ^ Z << 4)) ^ ((S ^ Y) + (K[(P & 3) ^ E] ^ Z)); }