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