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

replaces if statement in FLUSH with a little bit hack

parent 5431e0ee
......@@ -102,19 +102,13 @@
\
if (data < med) { \
if (half_d <= data - xmin) { \
if (d & 1) \
data -= half_d; \
else \
data += half_d; \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = xmin + d; \
} \
} else { \
if (half_d <= xmax - data) { \
if (d & 1) \
data -= half_d; \
else \
data += half_d; \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = xmax - d; \
} \
......
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