Commit Graph

20 Commits

Author SHA1 Message Date
czurnieden
629b88cf9a removed check against MP_MASK 2019-09-06 20:22:57 +02:00
Daniel Mendler
ca89e9c0ef
rename mp_root/mp_expt to mp_*_u32 2019-07-17 15:45:04 +02:00
Daniel Mendler
71696549a8
deprecate mp_expt_d and mp_n_root in favor of mp_expt and mp_root 2019-07-17 15:45:04 +02:00
Francois Perrad
3e15a3ff46 literal suffix 2019-05-31 10:53:30 +02:00
Francois Perrad
b9de7c09b1 cast 2019-05-29 08:16:46 +02:00
Daniel Mendler
0a9f5e9bc1
use u32 i64 suffix 2019-05-24 10:21:54 +02:00
Daniel Mendler
b58c996686
use int32 and uint32 instead of sint and uint 2019-05-24 00:15:57 +02:00
Daniel Mendler
3289c9590b
introduce various mp_set_sint/mp_set_uint functions with precise types 2019-05-24 00:15:57 +02:00
Francois Perrad
7fdd6b507d literal suffix instead of cast 2019-05-22 10:33:12 +02:00
Daniel Mendler
f55f0a9ef5
fix some usages of enum types 2019-05-18 10:03:47 +02:00
Daniel Mendler
4534056c28
use enums mp_err, mp_ord, mp_bool, mp_sign
* MP_USE_ENUMS enables enums
* Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined
* 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
2019-05-13 19:15:14 +02:00
Francois Perrad
2d508723aa const parameter 2019-05-13 17:53:00 +02:00
Daniel Mendler
7365442ace
No grow necessary in mp_set_int* functions
* mp_set_int* always return MP_OKAY
* remove return checks for mp_set_int*
* introduce MP_MIN_PREC
2019-05-12 13:04:45 +02:00
czurnieden
8a886c8284 resolving #218 2019-04-18 08:33:03 +02:00
Francois Perrad
bdf93e8308 avoid else if 2019-04-13 07:59:40 +02:00
Francois Perrad
a13a7e7c5c missing cast 2019-04-13 07:59:40 +02:00
Francois Perrad
01de1fe12a literal suffix 2019-04-13 07:59:40 +02:00
Francois Perrad
b586fcbd30 explicit condition 2019-04-13 07:59:40 +02:00
Daniel Mendler
8bf2eaa111
use MP_IS_ZERO in bn_mp_ilogb 2019-04-12 14:58:27 +02:00
czurnieden
35311aea49 added function mp_ilogb 2019-04-09 21:59:59 +02:00