chfast / intx

Extended precision integer C++ library
Apache License 2.0
129 stars 29 forks source link

Optimize multiplication loop #261

Closed chfast closed 2 years ago

chfast commented 2 years ago

In the multiplication loop add two uint64_t values with addc() instead of extending to uint128.

codecov-commenter commented 2 years ago

Codecov Report

Merging #261 (6017a8b) into master (e962c7b) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #261   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         1909      1911    +2     
=========================================
+ Hits          1909      1911    +2     
Flag Coverage Δ
32bit 100.00% <100.00%> (ø)
gcc 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/intx/intx.hpp 100.00% <100.00%> (ø)