29
29
/* t1 = get the GCD of the two inputs */
30
30
if ((res = mp_gcd (a, b, &t1)) != MP_OKAY) {
34
34
/* divide the smallest by the GCD */
35
35
if (mp_cmp_mag(a, b) == MP_LT) {
36
36
/* store quotient in t2 such that t2 * b is the LCM */
37
37
if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) {
42
42
/* store quotient in t2 such that t2 * a is the LCM */
43
43
if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) {