Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mathis Rosenhauer
libaec
Commits
e601c7d8
Commit
e601c7d8
authored
Sep 09, 2014
by
Moritz Hanke
Committed by
Mathis Rosenhauer
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaces subtraction with XOR in FLUSH
parent
9af97721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/decode.c
src/decode.c
+3
-2
No files found.
src/decode.c
View file @
e601c7d8
...
...
@@ -105,10 +105,11 @@
data = d; \
} \
} else { \
if (half_d <= xmax - data) { \
/*in this case (xmax - data == xmax ^ data)*/
\
if (half_d <= (xmax ^ data)) { \
data += (d >> 1)^(~((d & 1) - 1)); \
} else { \
data = xmax
-
d; \
data = xmax
^
d; \
} \
} \
put_##KIND(strm, (uint32_t)data); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment