Skip to content

Commit 428db2c

Browse files
committed
compute all bases of a power of two in the same way
1 parent 8f6994b commit 428db2c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bn_mp_radix_size_overestimate.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,6 @@ mp_err mp_radix_size_overestimate(const mp_int *a, const int base, int *size)
161161
*size = 2;
162162
return MP_OKAY;
163163
}
164-
if (base == 2) {
165-
*size = bit_count + 2;
166-
return MP_OKAY;
167-
}
168164

169165
/* A small shortcut for powers of two. */
170166
if (!(base&(base-1))) {

0 commit comments

Comments
 (0)