From c81054b6f609220f9c01112cb2d52e0d5aa27c7c Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 21 Jan 2024 13:29:34 +0300 Subject: [PATCH] fwrite_le.c: remove premature optimization --- src/fwrite_le.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fwrite_le.c b/src/fwrite_le.c index 1e6d502..30e7906 100644 --- a/src/fwrite_le.c +++ b/src/fwrite_le.c @@ -25,7 +25,7 @@ void reorder_le_for_be( #endif size_t count, size_t step) { for (size_t i = 0; i < count; i += step) { - const size_t div_size = step >> 1; // divide by 2 + const size_t div_size = step / 2; for (size_t j = 0; j < div_size; j++) { const size_t old_pos = i + j, new_pos = i + step - j - 1; #if FWRITE_LE_NO_MODIFICATION