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
008ea384
Commit
008ea384
authored
Jul 26, 2023
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
make casts explicit
parent
5ff9b623
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!26
Adapt cmp_tool to the chunk decompression
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
lib/cmp_data_types.c
+1
-1
1 addition, 1 deletion
lib/cmp_data_types.c
lib/cmp_guess.c
+2
-2
2 additions, 2 deletions
lib/cmp_guess.c
lib/cmp_rdcu.c
+2
-2
2 additions, 2 deletions
lib/cmp_rdcu.c
lib/decmp.c
+1
-1
1 addition, 1 deletion
lib/decmp.c
lib/rdcu_ctrl.c
+1
-1
1 addition, 1 deletion
lib/rdcu_ctrl.c
with
7 additions
and
7 deletions
lib/cmp_data_types.c
+
1
−
1
View file @
008ea384
...
...
@@ -149,7 +149,7 @@ uint32_t cmp_cal_size_of_data(uint32_t samples, enum cmp_data_type data_type)
int32_t
cmp_input_size_to_samples
(
uint32_t
size
,
enum
cmp_data_type
data_type
)
{
uint32_t
samples_size
=
size_of_a_sample
(
data_type
);
uint32_t
samples_size
=
(
uint32_t
)
size_of_a_sample
(
data_type
);
if
(
!
samples_size
)
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
lib/cmp_guess.c
+
2
−
2
View file @
008ea384
...
...
@@ -142,7 +142,7 @@ static uint32_t pre_cal_method(struct cmp_cfg *cfg)
cfg
->
golomb_par
=
golomb_par_best
;
cfg
->
spill
=
spill_best
;
return
cmp_size_best
;
return
(
uint32_t
)
cmp_size_best
;
}
...
...
@@ -199,7 +199,7 @@ static uint32_t brute_force(struct cmp_cfg *cfg)
cfg
->
golomb_par
=
golomb_par_best
;
cfg
->
spill
=
spill_best
;
return
cmp_size_best
;
return
(
uint32_t
)
cmp_size_best
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/cmp_rdcu.c
+
2
−
2
View file @
008ea384
...
...
@@ -316,8 +316,8 @@ int rdcu_read_cmp_info(struct cmp_info *info)
info
->
cmp_mode_used
=
rdcu_get_compression_mode
();
info
->
golomb_par_used
=
rdcu_get_golomb_param
();
info
->
spill_used
=
rdcu_get_spillover_threshold
();
info
->
model_value_used
=
rdcu_get_weighting_param
();
info
->
round_used
=
rdcu_get_noise_bits_rounded
();
info
->
model_value_used
=
(
uint8_t
)
rdcu_get_weighting_param
();
info
->
round_used
=
(
uint8_t
)
rdcu_get_noise_bits_rounded
();
info
->
rdcu_new_model_adr_used
=
rdcu_get_new_model_addr_used
();
info
->
samples_used
=
rdcu_get_samples_used
();
info
->
rdcu_cmp_adr_used
=
rdcu_get_compr_data_start_addr
();
...
...
This diff is collapsed.
Click to expand it.
lib/decmp.c
+
1
−
1
View file @
008ea384
...
...
@@ -78,7 +78,7 @@ static unsigned int count_leading_ones(uint32_t value)
if
(
value
==
0xFFFFFFFF
)
return
32
;
return
__builtin_clz
(
~
value
);
return
(
unsigned
int
)
__builtin_clz
(
~
value
);
}
...
...
This diff is collapsed.
Click to expand it.
lib/rdcu_ctrl.c
+
1
−
1
View file @
008ea384
...
...
@@ -200,7 +200,7 @@ uint8_t rdcu_get_rmap_target_cmd_key(void)
uint32_t
rdcu_get_lvds_link_enabled
(
uint32_t
link
)
{
if
(
link
>
7
)
return
-
1
;
return
-
1
U
;
return
(
rdcu
->
lvds_core_status
>>
link
)
&
0x1UL
;
}
...
...
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