Commit b519321a authored by Moritz Hanke's avatar Moritz Hanke Committed by Mathis Rosenhauer

removes on loop in FLUSH

parent 67fd2195
......@@ -97,21 +97,14 @@
for (bp = state->flush_start; bp < flush_end; bp++) { \
d = *bp; \
half_d = (d >> 1) + (d & 1); \
\
/*in this case: data >= med == data & med */ \
if (data & med) { \
uint32_t mask = (data & med)?xmax:0; \
\
/*in this case: xmax - data == xmax ^ data */ \
if (half_d <= (xmax ^ data)) { \
if (half_d <= (mask ^ data)) { \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = xmax ^ d; \
} \
} else { \
if (half_d <= data) { \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = d; \
} \
data = mask ^ d; \
} \
put_##KIND(strm, (uint32_t)data); \
} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment