Name Description Size Coverage
info.txt 232 -
mp_asmi.h Expressing an add with carry is sadly quite difficult in standard C/C++. Compilers will recognize various idioms and generate a reasonable carry chain. Unfortunately which idioms the compiler will understand vary, so we have to decide what to do based on the compiler. This is fragile; what will work varies not just based on compiler but also version, target architecture, and optimization flags. 19075 -
mp_comba.cpp Comba 4x4 Squaring 55946 -
mp_core.h If cond == 0, does nothing. If cond > 0, swaps x[0:size] with y[0:size] Runs in constant time 31875 -
mp_karat.cpp Simple O(N^2) Multiplication 9926 -
mp_monty.cpp Unrolled version of: for(size_t i = 0; i < bound; ++i) { accum.mul(ws[i], p[bound - i]); } 4281 -
mp_monty_n.cpp 69955 -