Commit 19f3f8e7 authored by Moritz Hanke's avatar Moritz Hanke Committed by Mathis Rosenhauer

removes "int32_t xmin" from FLUSH

parent ef5715db
...@@ -117,9 +117,8 @@ ...@@ -117,9 +117,8 @@
\ \
} else { \ } else { \
\ \
int32_t xmax, xmin, d; \ int32_t xmax, d; \
data = state->last_out; \ data = state->last_out; \
xmin = state->xmin; \
xmax = state->xmax; \ xmax = state->xmax; \
\ \
for (bp = state->flush_start; bp < flush_end; bp++) { \ for (bp = state->flush_start; bp < flush_end; bp++) { \
...@@ -127,10 +126,10 @@ ...@@ -127,10 +126,10 @@
half_d = ((uint32_t)d >> 1) + (d & 1); \ half_d = ((uint32_t)d >> 1) + (d & 1); \
\ \
if (data < 0) { \ if (data < 0) { \
if (half_d <= data - xmin) { \ if (half_d <= xmax + data + 1) { \
data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \ data += ((uint32_t)d >> 1)^(~((d & 1) - 1)); \
} else { \ } else { \
data = xmin + d; \ data = d - xmax - 1; \
} \ } \
} else { \ } else { \
if (half_d <= xmax - data) { \ if (half_d <= xmax - 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