comparison bn_mp_mod_2d.c @ 190:d8254fc979e9 libtommath-orig LTM_0.35

Initial import of libtommath 0.35
author Matt Johnston <matt@ucc.asn.au>
date Fri, 06 May 2005 08:59:30 +0000
parents d29b64170cf0
children
comparison
equal deleted inserted replaced
142:d29b64170cf0 190:d8254fc979e9
26 mp_zero (c); 26 mp_zero (c);
27 return MP_OKAY; 27 return MP_OKAY;
28 } 28 }
29 29
30 /* if the modulus is larger than the value than return */ 30 /* if the modulus is larger than the value than return */
31 if (b > (int) (a->used * DIGIT_BIT)) { 31 if (b >= (int) (a->used * DIGIT_BIT)) {
32 res = mp_copy (a, c); 32 res = mp_copy (a, c);
33 return res; 33 return res;
34 } 34 }
35 35
36 /* copy */ 36 /* copy */