
1 Apr
2008
1 Apr
'08
2:49 a.m.
AMDG Kevin Sopp wrote:
Hi all, I've been busy with porting the public domain C library libtommath to C++. The code is quite usable as it is and some simple documentation exists in the libs/mp_math/doc/html subfolder. I've implemented all C++ operators for the mp_int<> type and it can thus be used just like a built-in integer type. Some things like random number generation and primality testing have not been documented yet. Please have a look, I'm looking for feedback at the moment so that I can plan on how to proceed.
Since there is a multiply_by_2 function, I wonder whether it would make sense to allow multiplication by mpl::integral_c's and optimize when the value is a special case like a power of 2. In Christ, Steven Watanabe