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
0e99cb37
Commit
0e99cb37
authored
Nov 14, 2022
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
inline round functions
parent
af137664
No related branches found
No related tags found
1 merge request
!13
Function macro optimisation
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/cmp_support.h
+2
-2
2 additions, 2 deletions
include/cmp_support.h
lib/cmp_support.c
+2
-2
2 additions, 2 deletions
lib/cmp_support.c
with
4 additions
and
4 deletions
include/cmp_support.h
+
2
−
2
View file @
0e99cb37
...
@@ -273,8 +273,8 @@ int rdcu_supported_cmp_mode_is_used(enum cmp_mode cmp_mode);
...
@@ -273,8 +273,8 @@ int rdcu_supported_cmp_mode_is_used(enum cmp_mode cmp_mode);
int
zero_escape_mech_is_used
(
enum
cmp_mode
cmp_mode
);
int
zero_escape_mech_is_used
(
enum
cmp_mode
cmp_mode
);
int
multi_escape_mech_is_used
(
enum
cmp_mode
cmp_mode
);
int
multi_escape_mech_is_used
(
enum
cmp_mode
cmp_mode
);
u
nsigned
in
t
round_fwd
(
u
nsigned
in
t
value
,
unsigned
int
round
);
u
int32_
t
round_fwd
(
u
int32_
t
value
,
unsigned
int
round
);
u
nsigned
in
t
round_inv
(
u
nsigned
in
t
value
,
unsigned
int
round
);
u
int32_
t
round_inv
(
u
int32_
t
value
,
unsigned
int
round
);
unsigned
int
cmp_up_model
(
unsigned
int
data
,
unsigned
int
model
,
unsigned
int
cmp_up_model
(
unsigned
int
data
,
unsigned
int
model
,
unsigned
int
model_value
,
unsigned
int
round
);
unsigned
int
model_value
,
unsigned
int
round
);
...
...
This diff is collapsed.
Click to expand it.
lib/cmp_support.c
+
2
−
2
View file @
0e99cb37
...
@@ -321,7 +321,7 @@ int cmp_aux_data_type_is_used(enum cmp_data_type data_type)
...
@@ -321,7 +321,7 @@ int cmp_aux_data_type_is_used(enum cmp_data_type data_type)
* @return rounded value
* @return rounded value
*/
*/
unsigned
in
t
round_fwd
(
u
nsigned
in
t
value
,
unsigned
int
round
)
inline
__attribute__
((
always_inline
))
uint32_
t
round_fwd
(
u
int32_
t
value
,
unsigned
int
round
)
{
{
return
value
>>
round
;
return
value
>>
round
;
}
}
...
@@ -336,7 +336,7 @@ unsigned int round_fwd(unsigned int value, unsigned int round)
...
@@ -336,7 +336,7 @@ unsigned int round_fwd(unsigned int value, unsigned int round)
* @return back rounded value
* @return back rounded value
*/
*/
unsigned
in
t
round_inv
(
u
nsigned
in
t
value
,
unsigned
int
round
)
inline
__attribute__
((
always_inline
))
uint32_
t
round_inv
(
u
int32_
t
value
,
unsigned
int
round
)
{
{
return
value
<<
round
;
return
value
<<
round
;
}
}
...
...
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