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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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

0 commit comments

Comments
 (0)