The unified diff between revisions [0dc5b2d6..] and [b14c94b9..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'bn_mp_lcm.c'
#
#
# patch "bn_mp_lcm.c"
# from [525b0299d60ea98ecbe42622d6f44d6e64ea32a7]
# to [ae6e40952e57e849e762a25ce87385e02fb4bdcd]
#
============================================================
--- bn_mp_lcm.c 525b0299d60ea98ecbe42622d6f44d6e64ea32a7
+++ bn_mp_lcm.c ae6e40952e57e849e762a25ce87385e02fb4bdcd
@@ -28,20 +28,20 @@ int mp_lcm (mp_int * a, mp_int * b, mp_i
/* t1 = get the GCD of the two inputs */
if ((res = mp_gcd (a, b, &t1)) != MP_OKAY) {
- goto __T;
+ goto LBL_T;
}
/* divide the smallest by the GCD */
if (mp_cmp_mag(a, b) == MP_LT) {
/* store quotient in t2 such that t2 * b is the LCM */
if ((res = mp_div(a, &t1, &t2, NULL)) != MP_OKAY) {
- goto __T;
+ goto LBL_T;
}
res = mp_mul(b, &t2, c);
} else {
/* store quotient in t2 such that t2 * a is the LCM */
if ((res = mp_div(b, &t1, &t2, NULL)) != MP_OKAY) {
- goto __T;
+ goto LBL_T;
}
res = mp_mul(a, &t2, c);
}
@@ -49,7 +49,7 @@ int mp_lcm (mp_int * a, mp_int * b, mp_i
/* fix the sign to positive */
c->sign = MP_ZPOS;
-__T:
+LBL_T:
mp_clear_multi (&t1, &t2, NULL);
return res;
}