Commit 67fd2195 authored by Moritz Hanke's avatar Moritz Hanke Committed by Mathis Rosenhauer

replace "<" in FLUSH with "&"

parent e601c7d8
......@@ -98,18 +98,19 @@
d = *bp; \
half_d = (d >> 1) + (d & 1); \
\
if (data < med) { \
if (half_d <= data) { \
/*in this case: data >= med == data & med */ \
if (data & med) { \
/*in this case: xmax - data == xmax ^ data */ \
if (half_d <= (xmax ^ data)) { \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = d; \
data = xmax ^ d; \
} \
} else { \
/*in this case (xmax - data == xmax ^ data)*/ \
if (half_d <= (xmax ^ data)) { \
if (half_d <= data) { \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = xmax ^ d; \
data = 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