Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
4637cd97
Commit
4637cd97
authored
3 years ago
by
Aleksey Feoktistov
Browse files
Options
Downloads
Patches
Plain Diff
[*] math fix
parent
4af72c70
No related branches found
Branches containing commit
No related tags found
2 merge requests
!512
bugfix-5760
,
!501
Update dap_chain_global_db_driver_cdb.c - removed unused piece of code (added by bugfix5456)
Pipeline
#11134
passed with stage
in 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap-sdk/core/include/dap_math_ops.h
+2
-2
2 additions, 2 deletions
dap-sdk/core/include/dap_math_ops.h
with
2 additions
and
2 deletions
dap-sdk/core/include/dap_math_ops.h
+
2
−
2
View file @
4637cd97
...
...
@@ -232,7 +232,7 @@ static inline void LEFT_SHIFT_256(uint256_t a_256_bit,uint256_t* b_256_bit,int n
b_256_bit
->
hi
=
a_256_bit
.
hi
;
b_256_bit
->
lo
=
a_256_bit
.
lo
;
}
if
(
n
<
128
)
{
else
if
(
n
<
128
)
{
uint128_t
shift_temp
=
uint128_0
;
LEFT_SHIFT_128
(
a_256_bit
.
lo
,
&
shift_temp
,
n
);
b_256_bit
->
lo
=
shift_temp
;
...
...
@@ -255,7 +255,7 @@ static inline void RIGHT_SHIFT_256(uint256_t a_256_bit,uint256_t* b_256_bit,int
b_256_bit
->
hi
=
a_256_bit
.
hi
;
b_256_bit
->
lo
=
a_256_bit
.
lo
;
}
if
(
n
<
128
)
{
else
if
(
n
<
128
)
{
uint128_t
shift_temp
=
uint128_0
;
RIGHT_SHIFT_128
(
a_256_bit
.
hi
,
&
shift_temp
,
n
);
b_256_bit
->
hi
=
shift_temp
;
...
...
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