Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
c795867d
Commit
c795867d
authored
Aug 30, 2023
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Add comment
parent
e37a0abe
No related branches found
No related tags found
1 merge request
!26
Adapt cmp_tool to the chunk decompression
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/decmp.c
+1
-0
1 addition, 0 deletions
lib/decmp.c
with
1 addition
and
0 deletions
lib/decmp.c
+
1
−
0
View file @
c795867d
...
@@ -119,6 +119,7 @@ static unsigned int rice_decoder(uint32_t code_word, uint32_t m, uint32_t log2_m
...
@@ -119,6 +119,7 @@ static unsigned int rice_decoder(uint32_t code_word, uint32_t m, uint32_t log2_m
cw_len
=
q
+
1
+
rl
;
/* Number of 1's + following 0 + remainder length */
cw_len
=
q
+
1
+
rl
;
/* Number of 1's + following 0 + remainder length */
/* get remainder code */
/* get remainder code */
/* mask shift to prevented undefined behaviour in error case cw_len > 32 */
code_word
>>=
(
32
-
cw_len
)
&
0x1FU
;
code_word
>>=
(
32
-
cw_len
)
&
0x1FU
;
r
=
code_word
&
((
1U
<<
rl
)
-
1
);
r
=
code_word
&
((
1U
<<
rl
)
-
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment