From 21223f1055968222de1ac99705caaffae624ef8b Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Sat, 27 Jul 2024 18:07:56 -0700 Subject: [PATCH] Remove unrolling in loclass to save space in memory --- lib/loclass/optimized_cipher.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/loclass/optimized_cipher.c b/lib/loclass/optimized_cipher.c index e42dc08..6eaa888 100644 --- a/lib/loclass/optimized_cipher.c +++ b/lib/loclass/optimized_cipher.c @@ -144,7 +144,6 @@ static inline void loclass_opt_suc( bool add32Zeroes) { for(int i = 0; i < length; i++) { uint8_t head = in[i]; -#pragma GCC unroll 8 for(int j = 0; j < 8; j++) { loclass_opt_successor(k, s, head); head >>= 1; @@ -159,7 +158,6 @@ static inline void loclass_opt_suc( } static inline void loclass_opt_output(const uint8_t* k, LoclassState_t* s, uint8_t* buffer) { -#pragma GCC unroll 4 for(uint8_t times = 0; times < 4; times++) { uint8_t bout = 0; bout |= (s->r & 0x4) >> 2;