This is an old set of C macros I made for doing modular arithmetic within a single machine word (32 or 64 bits) using Peter L. Montgomery's REDC method. (See mpm for some bignum code.) Download version 2 here:
This page Copyright 2007, 2009, 2011, 2013, 2014, 2015, 2016, 2017 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.
(Back to the sitemap.)