Skip to content

Commit

Permalink
Added support to IBM/S390(x) to intnat::MultD
Browse files Browse the repository at this point in the history
  • Loading branch information
marcone-almeida committed Nov 7, 2023
1 parent 4ebb28e commit 7a7df9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/include/math/hal/intnat/ubintnat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,11 @@ class NativeIntegerT final : public lbcrypto::BigIntegerInterface<NativeIntegerT
wres = wa * wb;
res.hi = (uint64_t)(wres >> 64);
res.lo = (uint64_t)wres;
#elif __s390__
U128BITS wres(0), wa(a), wb(b);
wres = wa * wb;
res.hi = (uint64_t)(wres >> 64);
res.lo = (uint64_t)wres;
#elif defined(__EMSCRIPTEN__) // web assembly
U64BITS a1 = a >> 32;
U64BITS a2 = (uint32_t)a;
Expand Down

0 comments on commit 7a7df9e

Please sign in to comment.