From ac08d79ad4ab6196c8617316093aae585fca9cd4 Mon Sep 17 00:00:00 2001 From: AngelJumbo Date: Fri, 21 Oct 2022 11:51:54 -0500 Subject: [PATCH] Remove unnecessary math with custom characters --- lavat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lavat.c b/lavat.c index 7f6ffd8..c836af3 100644 --- a/lavat.c +++ b/lavat.c @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) { // calculate the two halfs of the block at the same time float sum[2] = {0}; - for (int j2 = 0; j2 < 2; j2++) { + for (int j2 = 0; j2 < (!custom ? 2 : 1); j2++) { for (int k = 0; k < nballs; k++) { int y = j * 2 + j2;