Function ADS::ahmes

Function Documentation

inline std::uint64_t ADS::ahmes(std::uint64_t a, std::uint64_t b, long *steps = nullptr)

the multiplication of Ahmes, in *steps the halvings, if given

Post:

the result is a b modulo 2^64