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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
5c852898
Commit
5c852898
authored
9 months ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Fix be24_to_cpu function for big-endian systems
parent
7479ba22
No related branches found
No related tags found
1 merge request
!34
Update cmp_tool to version v0.13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/common/cmp_data_types.c
+4
-0
4 additions, 0 deletions
lib/common/cmp_data_types.c
with
4 additions
and
0 deletions
lib/common/cmp_data_types.c
+
4
−
0
View file @
5c852898
...
...
@@ -592,7 +592,11 @@ size_t size_of_a_sample(enum cmp_data_type data_type)
static
uint32_t
be24_to_cpu
(
uint32_t
a
)
{
#ifdef __LITTLE_ENDIAN
return
be32_to_cpu
(
a
)
>>
8
;
#else
return
a
;
#endif
/* __LITTLE_ENDIAN */
}
...
...
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