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_reduce_is_2k.c'

#
#
# patch "bn_mp_reduce_is_2k.c"
#  from [daa704193df12dfc34059c8a7eb5223470b9464f]
#    to [4d4b366051978336c6ab81f3e987b0aa19c16812]
#
============================================================
--- bn_mp_reduce_is_2k.c	daa704193df12dfc34059c8a7eb5223470b9464f
+++ bn_mp_reduce_is_2k.c	4d4b366051978336c6ab81f3e987b0aa19c16812
@@ -22,9 +22,9 @@ int mp_reduce_is_2k(mp_int *a)
    mp_digit iz;

    if (a->used == 0) {
-      return 0;
+      return MP_NO;
    } else if (a->used == 1) {
-      return 1;
+      return MP_YES;
    } else if (a->used > 1) {
       iy = mp_count_bits(a);
       iz = 1;
@@ -33,7 +33,7 @@ int mp_reduce_is_2k(mp_int *a)
       /* Test every bit from the second digit up, must be 1 */
       for (ix = DIGIT_BIT; ix < iy; ix++) {
           if ((a->dp[iw] & iz) == 0) {
-             return 0;
+             return MP_NO;
           }
           iz <<= 1;
           if (iz > (mp_digit)MP_MASK) {
@@ -42,7 +42,7 @@ int mp_reduce_is_2k(mp_int *a)
           }
       }
    }
-   return 1;
+   return MP_YES;
 }

 #endif