f0e6ae59ab
...a 100% copy&paste of `mp_toradix_n()` besides the changed API signature
147 lines
2.5 KiB
Modula-2
147 lines
2.5 KiB
Modula-2
; libtommath
|
|
;
|
|
; Use this command to produce a 32-bit .lib file, for use in any MSVC version
|
|
; lib -machine:X86 -name:libtommath.dll -def:tommath.def -out:tommath.lib
|
|
; Use this command to produce a 64-bit .lib file, for use in any MSVC version
|
|
; lib -machine:X64 -name:libtommath.dll -def:tommath.def -out:tommath.lib
|
|
;
|
|
EXPORTS
|
|
mp_2expt
|
|
mp_abs
|
|
mp_add
|
|
mp_add_d
|
|
mp_addmod
|
|
mp_and
|
|
mp_clamp
|
|
mp_clear
|
|
mp_clear_multi
|
|
mp_cmp
|
|
mp_cmp_d
|
|
mp_cmp_mag
|
|
mp_cnt_lsb
|
|
mp_complement
|
|
mp_copy
|
|
mp_count_bits
|
|
mp_decr
|
|
mp_div
|
|
mp_div_2
|
|
mp_div_2d
|
|
mp_div_3
|
|
mp_div_d
|
|
mp_dr_is_modulus
|
|
mp_dr_reduce
|
|
mp_dr_setup
|
|
mp_error_to_string
|
|
mp_exch
|
|
mp_export
|
|
mp_expt_u32
|
|
mp_exptmod
|
|
mp_exteuclid
|
|
mp_fread
|
|
mp_fwrite
|
|
mp_gcd
|
|
mp_get_double
|
|
mp_get_i32
|
|
mp_get_i64
|
|
mp_get_int
|
|
mp_get_l
|
|
mp_get_ll
|
|
mp_get_long
|
|
mp_get_long_long
|
|
mp_get_mag_u32
|
|
mp_get_mag_u64
|
|
mp_get_mag_ul
|
|
mp_get_mag_ull
|
|
mp_grow
|
|
mp_ilogb
|
|
mp_import
|
|
mp_incr
|
|
mp_init
|
|
mp_init_copy
|
|
mp_init_i32
|
|
mp_init_i64
|
|
mp_init_l
|
|
mp_init_ll
|
|
mp_init_multi
|
|
mp_init_set
|
|
mp_init_set_int
|
|
mp_init_size
|
|
mp_init_u32
|
|
mp_init_u64
|
|
mp_init_ul
|
|
mp_init_ull
|
|
mp_invmod
|
|
mp_is_square
|
|
mp_iseven
|
|
mp_isodd
|
|
mp_kronecker
|
|
mp_lcm
|
|
mp_lshd
|
|
mp_mod
|
|
mp_mod_2d
|
|
mp_mod_d
|
|
mp_montgomery_calc_normalization
|
|
mp_montgomery_reduce
|
|
mp_montgomery_setup
|
|
mp_mul
|
|
mp_mul_2
|
|
mp_mul_2d
|
|
mp_mul_d
|
|
mp_mulmod
|
|
mp_neg
|
|
mp_or
|
|
mp_prime_fermat
|
|
mp_prime_frobenius_underwood
|
|
mp_prime_is_prime
|
|
mp_prime_miller_rabin
|
|
mp_prime_next_prime
|
|
mp_prime_rabin_miller_trials
|
|
mp_prime_rand
|
|
mp_prime_strong_lucas_selfridge
|
|
mp_radix_size
|
|
mp_rand
|
|
mp_read_radix
|
|
mp_read_signed_bin
|
|
mp_read_unsigned_bin
|
|
mp_reduce
|
|
mp_reduce_2k
|
|
mp_reduce_2k_l
|
|
mp_reduce_2k_setup
|
|
mp_reduce_2k_setup_l
|
|
mp_reduce_is_2k
|
|
mp_reduce_is_2k_l
|
|
mp_reduce_setup
|
|
mp_root_u32
|
|
mp_rshd
|
|
mp_set
|
|
mp_set_double
|
|
mp_set_i32
|
|
mp_set_i64
|
|
mp_set_int
|
|
mp_set_l
|
|
mp_set_ll
|
|
mp_set_long
|
|
mp_set_long_long
|
|
mp_set_u32
|
|
mp_set_u64
|
|
mp_set_ul
|
|
mp_set_ull
|
|
mp_shrink
|
|
mp_signed_bin_size
|
|
mp_signed_rsh
|
|
mp_sqr
|
|
mp_sqrmod
|
|
mp_sqrt
|
|
mp_sqrtmod_prime
|
|
mp_sub
|
|
mp_sub_d
|
|
mp_submod
|
|
mp_to_radix
|
|
mp_to_signed_bin
|
|
mp_to_signed_bin_n
|
|
mp_to_unsigned_bin
|
|
mp_to_unsigned_bin_n
|
|
mp_unsigned_bin_size
|
|
mp_xor
|
|
mp_zero
|