Skip to content

Commit ef07da5

Browse files
committed
mp_min_u32 is not used anywhere anymore, so it can be removed
1 parent 0539903 commit ef07da5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

dep.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
$line = $';
118118
# now $& is the match, we want to skip over LTM keywords like
119119
# mp_int, mp_word, mp_digit
120-
if (!($& eq 'mp_digit') && !($& eq 'mp_word') && !($& eq 'mp_int') && !($& eq 'mp_min_u32')) {
120+
if (!($& eq 'mp_digit') && !($& eq 'mp_word') && !($& eq 'mp_int')) {
121121
my $a = $&;
122122
$a =~ tr/[a-z]/[A-Z]/;
123123
$a = 'BN_' . $a . '_C';

tommath.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ typedef uint64_t mp_word;
9393
# endif
9494
#endif
9595

96-
/* otherwise the bits per digit is calculated automatically from the size of a mp_digit */
97-
#ifndef DIGIT_BIT
98-
# define DIGIT_BIT (((CHAR_BIT * MP_SIZEOF_MP_DIGIT) - 1)) /* bits per digit */
99-
typedef uint_least32_t mp_min_u32;
100-
#else
101-
typedef mp_digit mp_min_u32;
102-
#endif
103-
10496
#define MP_DIGIT_BIT DIGIT_BIT
10597
#define MP_MASK ((((mp_digit)1)<<((mp_digit)DIGIT_BIT))-((mp_digit)1))
10698
#define MP_DIGIT_MAX MP_MASK

0 commit comments

Comments
 (0)