fwrite_le.c: remove premature optimization
This commit is contained in:
parent
bd02f2b6a6
commit
c81054b6f6
@ -25,7 +25,7 @@ void reorder_le_for_be(
|
|||||||
#endif
|
#endif
|
||||||
size_t count, size_t step) {
|
size_t count, size_t step) {
|
||||||
for (size_t i = 0; i < count; i += 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++) {
|
for (size_t j = 0; j < div_size; j++) {
|
||||||
const size_t old_pos = i + j, new_pos = i + step - j - 1;
|
const size_t old_pos = i + j, new_pos = i + step - j - 1;
|
||||||
#if FWRITE_LE_NO_MODIFICATION
|
#if FWRITE_LE_NO_MODIFICATION
|
||||||
|
Loading…
Reference in New Issue
Block a user