From e3f834f26170cfd67ad0804e56e1044fca8e26bd Mon Sep 17 00:00:00 2001 From: Justin Brzozoski Date: Tue, 9 Jun 2020 22:51:59 -0400 Subject: [PATCH] Small improvement of FX.25 RS encoder speed The old design walked the entire feedback array XORing all values, then shifted them all down by one index. This design does the shift-by-one while doing the XOR work to save a step. Signed-off-by: Justin Brzozoski --- src/fx25_encode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fx25_encode.c b/src/fx25_encode.c index 02c20a84..7575444d 100644 --- a/src/fx25_encode.c +++ b/src/fx25_encode.c @@ -69,15 +69,15 @@ void ENCODE_RS(struct rs * restrict rs, DTYPE * restrict data, DTYPE * restrict for(i=0;i