aboutsummaryrefslogtreecommitdiffstats
path: root/src/block
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-04 17:48:36 +0000
committerlloyd <[email protected]>2009-11-04 17:48:36 +0000
commite4e19f655ec04cd195bfd6d0667c522316301912 (patch)
treeffc6fcda443fe454a000130a8303bbc7be873610 /src/block
parent30f6169ebf9164a6fdb35519030975440a5b07d7 (diff)
Indent and avoid one extra assignment
Diffstat (limited to 'src/block')
-rw-r--r--src/block/serpent_simd/serp_simd_sbox.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/block/serpent_simd/serp_simd_sbox.h b/src/block/serpent_simd/serp_simd_sbox.h
index 6e3da7359..fe70f0063 100644
--- a/src/block/serpent_simd/serp_simd_sbox.h
+++ b/src/block/serpent_simd/serp_simd_sbox.h
@@ -76,11 +76,10 @@
B4 ^= B0; \
B1 ^= B3; \
B1 ^= B4; \
- B4 = ~B4; \
B0 = B2; \
B2 = B1; \
B1 = B3; \
- B3 = B4; \
+ B3 = ~B4; \
} while(0);
#define SBoxE4(B0, B1, B2, B3) \
@@ -165,7 +164,7 @@
#define SBoxE7(B0, B1, B2, B3) \
do { \
- B2 = ~B2; \
+ B2 = ~B2; \
SIMD_32 B4 = B3; \
B3 &= B0; \
B0 ^= B4; \