Skip to content
Snippets Groups Projects
Commit 4637cd97 authored by Aleksey Feoktistov's avatar Aleksey Feoktistov
Browse files

[*] math fix

parent 4af72c70
No related branches found
No related tags found
2 merge requests!512bugfix-5760,!501Update dap_chain_global_db_driver_cdb.c - removed unused piece of code (added by bugfix5456)
Pipeline #11134 passed with stage
in 7 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment