xpymn.c:


/* Modular addition */
long xpymn(x,y,n) long x,y,n; {
   long result;

   if (n<=0)  return 0;
   result = (x+y) % n;

   return result;
}

Go to ...


This page is http://www.cc.utah.edu/~nahaj/factoring/xpymn.c.html
© Copyright 2003 by John Halleck, All Rights Reserved.
This snapshot was last modified on December 24th, 2013