Skip to content
Snippets Groups Projects
Commit c795867d authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Add comment

parent e37a0abe
No related branches found
No related tags found
1 merge request!26Adapt cmp_tool to the chunk decompression
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment