Skip to content

Commit dad0fbd

Browse files
authored
Merge pull request #321 from libtom/explicit_symbols_for_l_and_ll
Provide explicit symbols for bn_xxx_l and bn_xxx_ll functions.
2 parents ca78ed2 + 58ae5c2 commit dad0fbd

27 files changed

+350
-96
lines changed

bn_mp_get_i32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
44
/* SPDX-License-Identifier: Unlicense */
55

6-
MP_GET_SIGNED(int32_t, mp_get_i32, mp_get_mag32)
6+
MP_GET_SIGNED(mp_get_i32, mp_get_mag32, int32_t, uint32_t)
77
#endif

bn_mp_get_i64.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
44
/* SPDX-License-Identifier: Unlicense */
55

6-
MP_GET_SIGNED(int64_t, mp_get_i64, mp_get_mag64)
6+
MP_GET_SIGNED(mp_get_i64, mp_get_mag64, int64_t, uint64_t)
77
#endif

bn_mp_get_l.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_GET_L_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_GET_SIGNED(mp_get_l, mp_get_magl, long, unsigned long)
7+
#endif

bn_mp_get_ll.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_GET_LL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_GET_SIGNED(mp_get_ll, mp_get_magll, long long, unsigned long long)
7+
#endif

bn_mp_get_mag32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
44
/* SPDX-License-Identifier: Unlicense */
55

6-
MP_GET_MAG(uint32_t, mp_get_mag32)
6+
MP_GET_MAG(mp_get_mag32, uint32_t)
77
#endif

bn_mp_get_mag64.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
44
/* SPDX-License-Identifier: Unlicense */
55

6-
MP_GET_MAG(uint64_t, mp_get_mag64)
6+
MP_GET_MAG(mp_get_mag64, uint64_t)
77
#endif

bn_mp_get_magl.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_GET_MAGL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_GET_MAG(mp_get_magl, unsigned long)
7+
#endif

bn_mp_get_magll.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_GET_MAGLL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_GET_MAG(mp_get_magll, unsigned long long)
7+
#endif

bn_mp_init_l.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_INIT_L_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_INIT_INT(mp_init_l, mp_set_l, long)
7+
#endif

bn_mp_init_ll.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_INIT_LL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_INIT_INT(mp_init_ll, mp_set_ll, long long)
7+
#endif

bn_mp_init_ul.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_INIT_UL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_INIT_INT(mp_init_ul, mp_set_ul, unsigned long)
7+
#endif

bn_mp_init_ull.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_INIT_ULL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_INIT_INT(mp_init_ull, mp_set_ull, unsigned long long)
7+
#endif

bn_mp_set_l.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_SET_L_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_SET_SIGNED(mp_set_l, mp_set_ul, long, unsigned long)
7+
#endif

bn_mp_set_ll.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_SET_LL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_SET_SIGNED(mp_set_ll, mp_set_ull, long long, unsigned long long)
7+
#endif

bn_mp_set_ul.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_SET_UL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_SET_UNSIGNED(mp_set_ul, unsigned long)
7+
#endif

bn_mp_set_ull.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include "tommath_private.h"
2+
#ifdef BN_MP_SET_ULL_C
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
5+
6+
MP_SET_UNSIGNED(mp_set_ull, unsigned long long)
7+
#endif

doc/bn.tex

+31-4
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,9 @@ \section{Bit Counting}
780780

781781

782782
\section{Small Constants}
783-
Setting mp\_ints to small constants is a relatively common operation. To accommodate these instances there are two
784-
small constant assignment functions. The first function is used to set a single digit constant while the second sets
785-
an ISO C style ``unsigned long'' constant. The reason for both functions is efficiency. Setting a single digit is quick but the
783+
Setting mp\_ints to small constants is a relatively common operation. To accommodate these instances there is a
784+
small constant assignment function. This function is used to set a single digit constant.
785+
The reason for this function is efficiency. Setting a single digit is quick but the
786786
domain of a digit can change (it's always at least $0 \ldots 127$).
787787

788788
\subsection{Single Digit}
@@ -899,13 +899,40 @@ \subsection{Long Constants - platform dependant}
899899

900900
This will return the least significant bits of the mp\_int $a$ that fit into a ``long''.
901901

902+
\subsection{Long Long Constants - platform dependant}
903+
904+
\index{mp\_set\_ulonglong}
905+
\begin{alltt}
906+
void mp_set_ll (mp_int * a, long long b);
907+
void mp_set_ull (mp_int * a, unsigned long long b);
908+
\end{alltt}
909+
910+
This will assign the value of the platform-dependent sized variable $b$ to the mp\_int $a$.
911+
912+
To retrieve the value, the following functions can be used.
913+
914+
\index{mp\_get\_ulonglong}
915+
\begin{alltt}
916+
long long mp_get_ll (mp_int * a);
917+
unsigned long long mp_get_ull (mp_int * a);
918+
unsigned long long mp_get_magll (mp_int * a);
919+
\end{alltt}
920+
921+
This will return the least significant bits of the mp\_int $a$ that fit into a ``long long''.
922+
902923
\subsection{Initialize and Setting Constants}
903924
To both initialize and set small constants the following two functions are available.
904925
\index{mp\_init\_set} \index{mp\_init\_set\_int}
905926
\begin{alltt}
906927
int mp_init_set (mp_int * a, mp_digit b);
907928
int mp_init_i32 (mp_int * a, int32_t b);
908929
int mp_init_u32 (mp_int * a, uint32_t b);
930+
int mp_init_i64 (mp_int * a, int64_t b);
931+
int mp_init_u64 (mp_int * a, uint64_t b);
932+
int mp_init_l (mp_int * a, long b);
933+
int mp_init_ul (mp_int * a, unsigned long b);
934+
int mp_init_ll (mp_int * a, long long b);
935+
int mp_init_ull (mp_int * a, unsigned long long b);
909936
\end{alltt}
910937

911938
Both functions work like the previous counterparts except they first mp\_init $a$ before setting the values.
@@ -924,7 +951,7 @@ \subsection{Initialize and Setting Constants}
924951
\}
925952
926953
/* initialize and set a long */
927-
if ((result = mp_init_set_uint(&number2, 1023)) != MP_OKAY) \{
954+
if ((result = mp_init_l(&number2, 1023)) != MP_OKAY) \{
928955
printf("Error setting number2: \%s",
929956
mp_error_to_string(result));
930957
return EXIT_FAILURE;

libtommath_VS2008.vcproj

+48
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,14 @@
468468
RelativePath="bn_mp_get_i64.c"
469469
>
470470
</File>
471+
<File
472+
RelativePath="bn_mp_get_l.c"
473+
>
474+
</File>
475+
<File
476+
RelativePath="bn_mp_get_ll.c"
477+
>
478+
</File>
471479
<File
472480
RelativePath="bn_mp_get_mag32.c"
473481
>
@@ -476,6 +484,14 @@
476484
RelativePath="bn_mp_get_mag64.c"
477485
>
478486
</File>
487+
<File
488+
RelativePath="bn_mp_get_magl.c"
489+
>
490+
</File>
491+
<File
492+
RelativePath="bn_mp_get_magll.c"
493+
>
494+
</File>
479495
<File
480496
RelativePath="bn_mp_grow.c"
481497
>
@@ -508,6 +524,14 @@
508524
RelativePath="bn_mp_init_i64.c"
509525
>
510526
</File>
527+
<File
528+
RelativePath="bn_mp_init_l.c"
529+
>
530+
</File>
531+
<File
532+
RelativePath="bn_mp_init_ll.c"
533+
>
534+
</File>
511535
<File
512536
RelativePath="bn_mp_init_multi.c"
513537
>
@@ -528,6 +552,14 @@
528552
RelativePath="bn_mp_init_u64.c"
529553
>
530554
</File>
555+
<File
556+
RelativePath="bn_mp_init_ul.c"
557+
>
558+
</File>
559+
<File
560+
RelativePath="bn_mp_init_ull.c"
561+
>
562+
</File>
531563
<File
532564
RelativePath="bn_mp_invmod.c"
533565
>
@@ -720,6 +752,14 @@
720752
RelativePath="bn_mp_set_i64.c"
721753
>
722754
</File>
755+
<File
756+
RelativePath="bn_mp_set_l.c"
757+
>
758+
</File>
759+
<File
760+
RelativePath="bn_mp_set_ll.c"
761+
>
762+
</File>
723763
<File
724764
RelativePath="bn_mp_set_u32.c"
725765
>
@@ -728,6 +768,14 @@
728768
RelativePath="bn_mp_set_u64.c"
729769
>
730770
</File>
771+
<File
772+
RelativePath="bn_mp_set_ul.c"
773+
>
774+
</File>
775+
<File
776+
RelativePath="bn_mp_set_ull.c"
777+
>
778+
</File>
731779
<File
732780
RelativePath="bn_mp_shrink.c"
733781
>

makefile

+17-15
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ bn_mp_and.o bn_mp_clamp.o bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp.o bn_mp_cm
3131
bn_mp_cnt_lsb.o bn_mp_complement.o bn_mp_copy.o bn_mp_count_bits.o bn_mp_decr.o bn_mp_div.o bn_mp_div_2.o \
3232
bn_mp_div_2d.o bn_mp_div_3.o bn_mp_div_d.o bn_mp_dr_is_modulus.o bn_mp_dr_reduce.o bn_mp_dr_setup.o \
3333
bn_mp_error_to_string.o bn_mp_exch.o bn_mp_export.o bn_mp_expt_d.o bn_mp_exptmod.o bn_mp_exteuclid.o \
34-
bn_mp_fread.o bn_mp_fwrite.o bn_mp_gcd.o bn_mp_get_double.o bn_mp_get_i32.o bn_mp_get_i64.o \
35-
bn_mp_get_mag32.o bn_mp_get_mag64.o bn_mp_grow.o bn_mp_ilogb.o bn_mp_import.o bn_mp_incr.o bn_mp_init.o \
36-
bn_mp_init_copy.o bn_mp_init_i32.o bn_mp_init_i64.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o \
37-
bn_mp_init_u32.o bn_mp_init_u64.o bn_mp_invmod.o bn_mp_is_square.o bn_mp_iseven.o bn_mp_isodd.o \
38-
bn_mp_kronecker.o bn_mp_lcm.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mod_d.o \
34+
bn_mp_fread.o bn_mp_fwrite.o bn_mp_gcd.o bn_mp_get_double.o bn_mp_get_i32.o bn_mp_get_i64.o bn_mp_get_l.o \
35+
bn_mp_get_ll.o bn_mp_get_mag32.o bn_mp_get_mag64.o bn_mp_get_magl.o bn_mp_get_magll.o bn_mp_grow.o \
36+
bn_mp_ilogb.o bn_mp_import.o bn_mp_incr.o bn_mp_init.o bn_mp_init_copy.o bn_mp_init_i32.o bn_mp_init_i64.o \
37+
bn_mp_init_l.o bn_mp_init_ll.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o bn_mp_init_u32.o \
38+
bn_mp_init_u64.o bn_mp_init_ul.o bn_mp_init_ull.o bn_mp_invmod.o bn_mp_is_square.o bn_mp_iseven.o \
39+
bn_mp_isodd.o bn_mp_kronecker.o bn_mp_lcm.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mod_d.o \
3940
bn_mp_montgomery_calc_normalization.o bn_mp_montgomery_reduce.o bn_mp_montgomery_setup.o bn_mp_mul.o \
4041
bn_mp_mul_2.o bn_mp_mul_2d.o bn_mp_mul_d.o bn_mp_mulmod.o bn_mp_n_root.o bn_mp_neg.o bn_mp_or.o \
4142
bn_mp_prime_fermat.o bn_mp_prime_frobenius_underwood.o bn_mp_prime_is_prime.o \
@@ -44,16 +45,17 @@ bn_mp_prime_rand.o bn_mp_prime_strong_lucas_selfridge.o bn_mp_radix_size.o bn_mp
4445
bn_mp_rand.o bn_mp_read_radix.o bn_mp_read_signed_bin.o bn_mp_read_unsigned_bin.o bn_mp_reduce.o \
4546
bn_mp_reduce_2k.o bn_mp_reduce_2k_l.o bn_mp_reduce_2k_setup.o bn_mp_reduce_2k_setup_l.o \
4647
bn_mp_reduce_is_2k.o bn_mp_reduce_is_2k_l.o bn_mp_reduce_setup.o bn_mp_rshd.o bn_mp_set.o \
47-
bn_mp_set_double.o bn_mp_set_i32.o bn_mp_set_i64.o bn_mp_set_u32.o bn_mp_set_u64.o bn_mp_shrink.o \
48-
bn_mp_signed_bin_size.o bn_mp_signed_rsh.o bn_mp_sqr.o bn_mp_sqrmod.o bn_mp_sqrt.o bn_mp_sqrtmod_prime.o \
49-
bn_mp_sub.o bn_mp_sub_d.o bn_mp_submod.o bn_mp_to_signed_bin.o bn_mp_to_signed_bin_n.o \
50-
bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o bn_mp_toradix.o bn_mp_toradix_n.o \
51-
bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_prime_tab.o bn_s_mp_add.o bn_s_mp_balance_mul.o \
52-
bn_s_mp_exptmod.o bn_s_mp_exptmod_fast.o bn_s_mp_get_bit.o bn_s_mp_invmod_fast.o bn_s_mp_invmod_slow.o \
53-
bn_s_mp_karatsuba_mul.o bn_s_mp_karatsuba_sqr.o bn_s_mp_montgomery_reduce_fast.o bn_s_mp_mul_digs.o \
54-
bn_s_mp_mul_digs_fast.o bn_s_mp_mul_high_digs.o bn_s_mp_mul_high_digs_fast.o \
55-
bn_s_mp_prime_is_divisible.o bn_s_mp_rand_jenkins.o bn_s_mp_rand_platform.o bn_s_mp_reverse.o \
56-
bn_s_mp_sqr.o bn_s_mp_sqr_fast.o bn_s_mp_sub.o bn_s_mp_toom_mul.o bn_s_mp_toom_sqr.o
48+
bn_mp_set_double.o bn_mp_set_i32.o bn_mp_set_i64.o bn_mp_set_l.o bn_mp_set_ll.o bn_mp_set_u32.o \
49+
bn_mp_set_u64.o bn_mp_set_ul.o bn_mp_set_ull.o bn_mp_shrink.o bn_mp_signed_bin_size.o bn_mp_signed_rsh.o \
50+
bn_mp_sqr.o bn_mp_sqrmod.o bn_mp_sqrt.o bn_mp_sqrtmod_prime.o bn_mp_sub.o bn_mp_sub_d.o bn_mp_submod.o \
51+
bn_mp_to_signed_bin.o bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o \
52+
bn_mp_toradix.o bn_mp_toradix_n.o bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_prime_tab.o \
53+
bn_s_mp_add.o bn_s_mp_balance_mul.o bn_s_mp_exptmod.o bn_s_mp_exptmod_fast.o bn_s_mp_get_bit.o \
54+
bn_s_mp_invmod_fast.o bn_s_mp_invmod_slow.o bn_s_mp_karatsuba_mul.o bn_s_mp_karatsuba_sqr.o \
55+
bn_s_mp_montgomery_reduce_fast.o bn_s_mp_mul_digs.o bn_s_mp_mul_digs_fast.o bn_s_mp_mul_high_digs.o \
56+
bn_s_mp_mul_high_digs_fast.o bn_s_mp_prime_is_divisible.o bn_s_mp_rand_jenkins.o \
57+
bn_s_mp_rand_platform.o bn_s_mp_reverse.o bn_s_mp_sqr.o bn_s_mp_sqr_fast.o bn_s_mp_sub.o \
58+
bn_s_mp_toom_mul.o bn_s_mp_toom_sqr.o
5759

5860
#END_INS
5961

makefile.mingw

+17-15
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ bn_mp_and.o bn_mp_clamp.o bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp.o bn_mp_cm
3434
bn_mp_cnt_lsb.o bn_mp_complement.o bn_mp_copy.o bn_mp_count_bits.o bn_mp_decr.o bn_mp_div.o bn_mp_div_2.o \
3535
bn_mp_div_2d.o bn_mp_div_3.o bn_mp_div_d.o bn_mp_dr_is_modulus.o bn_mp_dr_reduce.o bn_mp_dr_setup.o \
3636
bn_mp_error_to_string.o bn_mp_exch.o bn_mp_export.o bn_mp_expt_d.o bn_mp_exptmod.o bn_mp_exteuclid.o \
37-
bn_mp_fread.o bn_mp_fwrite.o bn_mp_gcd.o bn_mp_get_double.o bn_mp_get_i32.o bn_mp_get_i64.o \
38-
bn_mp_get_mag32.o bn_mp_get_mag64.o bn_mp_grow.o bn_mp_ilogb.o bn_mp_import.o bn_mp_incr.o bn_mp_init.o \
39-
bn_mp_init_copy.o bn_mp_init_i32.o bn_mp_init_i64.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o \
40-
bn_mp_init_u32.o bn_mp_init_u64.o bn_mp_invmod.o bn_mp_is_square.o bn_mp_iseven.o bn_mp_isodd.o \
41-
bn_mp_kronecker.o bn_mp_lcm.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mod_d.o \
37+
bn_mp_fread.o bn_mp_fwrite.o bn_mp_gcd.o bn_mp_get_double.o bn_mp_get_i32.o bn_mp_get_i64.o bn_mp_get_l.o \
38+
bn_mp_get_ll.o bn_mp_get_mag32.o bn_mp_get_mag64.o bn_mp_get_magl.o bn_mp_get_magll.o bn_mp_grow.o \
39+
bn_mp_ilogb.o bn_mp_import.o bn_mp_incr.o bn_mp_init.o bn_mp_init_copy.o bn_mp_init_i32.o bn_mp_init_i64.o \
40+
bn_mp_init_l.o bn_mp_init_ll.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o bn_mp_init_u32.o \
41+
bn_mp_init_u64.o bn_mp_init_ul.o bn_mp_init_ull.o bn_mp_invmod.o bn_mp_is_square.o bn_mp_iseven.o \
42+
bn_mp_isodd.o bn_mp_kronecker.o bn_mp_lcm.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mod_d.o \
4243
bn_mp_montgomery_calc_normalization.o bn_mp_montgomery_reduce.o bn_mp_montgomery_setup.o bn_mp_mul.o \
4344
bn_mp_mul_2.o bn_mp_mul_2d.o bn_mp_mul_d.o bn_mp_mulmod.o bn_mp_n_root.o bn_mp_neg.o bn_mp_or.o \
4445
bn_mp_prime_fermat.o bn_mp_prime_frobenius_underwood.o bn_mp_prime_is_prime.o \
@@ -47,16 +48,17 @@ bn_mp_prime_rand.o bn_mp_prime_strong_lucas_selfridge.o bn_mp_radix_size.o bn_mp
4748
bn_mp_rand.o bn_mp_read_radix.o bn_mp_read_signed_bin.o bn_mp_read_unsigned_bin.o bn_mp_reduce.o \
4849
bn_mp_reduce_2k.o bn_mp_reduce_2k_l.o bn_mp_reduce_2k_setup.o bn_mp_reduce_2k_setup_l.o \
4950
bn_mp_reduce_is_2k.o bn_mp_reduce_is_2k_l.o bn_mp_reduce_setup.o bn_mp_rshd.o bn_mp_set.o \
50-
bn_mp_set_double.o bn_mp_set_i32.o bn_mp_set_i64.o bn_mp_set_u32.o bn_mp_set_u64.o bn_mp_shrink.o \
51-
bn_mp_signed_bin_size.o bn_mp_signed_rsh.o bn_mp_sqr.o bn_mp_sqrmod.o bn_mp_sqrt.o bn_mp_sqrtmod_prime.o \
52-
bn_mp_sub.o bn_mp_sub_d.o bn_mp_submod.o bn_mp_to_signed_bin.o bn_mp_to_signed_bin_n.o \
53-
bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o bn_mp_toradix.o bn_mp_toradix_n.o \
54-
bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_prime_tab.o bn_s_mp_add.o bn_s_mp_balance_mul.o \
55-
bn_s_mp_exptmod.o bn_s_mp_exptmod_fast.o bn_s_mp_get_bit.o bn_s_mp_invmod_fast.o bn_s_mp_invmod_slow.o \
56-
bn_s_mp_karatsuba_mul.o bn_s_mp_karatsuba_sqr.o bn_s_mp_montgomery_reduce_fast.o bn_s_mp_mul_digs.o \
57-
bn_s_mp_mul_digs_fast.o bn_s_mp_mul_high_digs.o bn_s_mp_mul_high_digs_fast.o \
58-
bn_s_mp_prime_is_divisible.o bn_s_mp_rand_jenkins.o bn_s_mp_rand_platform.o bn_s_mp_reverse.o \
59-
bn_s_mp_sqr.o bn_s_mp_sqr_fast.o bn_s_mp_sub.o bn_s_mp_toom_mul.o bn_s_mp_toom_sqr.o
51+
bn_mp_set_double.o bn_mp_set_i32.o bn_mp_set_i64.o bn_mp_set_l.o bn_mp_set_ll.o bn_mp_set_u32.o \
52+
bn_mp_set_u64.o bn_mp_set_ul.o bn_mp_set_ull.o bn_mp_shrink.o bn_mp_signed_bin_size.o bn_mp_signed_rsh.o \
53+
bn_mp_sqr.o bn_mp_sqrmod.o bn_mp_sqrt.o bn_mp_sqrtmod_prime.o bn_mp_sub.o bn_mp_sub_d.o bn_mp_submod.o \
54+
bn_mp_to_signed_bin.o bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o \
55+
bn_mp_toradix.o bn_mp_toradix_n.o bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_prime_tab.o \
56+
bn_s_mp_add.o bn_s_mp_balance_mul.o bn_s_mp_exptmod.o bn_s_mp_exptmod_fast.o bn_s_mp_get_bit.o \
57+
bn_s_mp_invmod_fast.o bn_s_mp_invmod_slow.o bn_s_mp_karatsuba_mul.o bn_s_mp_karatsuba_sqr.o \
58+
bn_s_mp_montgomery_reduce_fast.o bn_s_mp_mul_digs.o bn_s_mp_mul_digs_fast.o bn_s_mp_mul_high_digs.o \
59+
bn_s_mp_mul_high_digs_fast.o bn_s_mp_prime_is_divisible.o bn_s_mp_rand_jenkins.o \
60+
bn_s_mp_rand_platform.o bn_s_mp_reverse.o bn_s_mp_sqr.o bn_s_mp_sqr_fast.o bn_s_mp_sub.o \
61+
bn_s_mp_toom_mul.o bn_s_mp_toom_sqr.o
6062

6163
HEADERS_PUB=tommath.h
6264
HEADERS=tommath_private.h tommath_class.h tommath_superclass.h $(HEADERS_PUB)

0 commit comments

Comments
 (0)