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

replace "<" in FLUSH with "&"

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