Commit Graph

21 Commits

Author SHA1 Message Date
Francois Perrad
150c47cce2 refactor literal suffix with u lowercase 2019-05-20 05:36:24 +02:00
Francois Perrad
8b2daf7817 always use varname err with mp_err 2019-05-20 05:36:18 +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
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
Daniel Mendler
c4fb2241dc
rename macros in tommath_private to use MP_* prefix 2019-04-12 14:55:08 +02:00
Daniel Mendler
ff56140462
shorter headers 2019-04-07 17:26:31 +02:00
Daniel Mendler
70a30ae7a7
remove footers 2019-04-07 17:26:31 +02:00
Francois Perrad
b879bd495a refactor with new macros IS_* 2019-02-02 07:39:23 +01:00
Francois Perrad
64298b9a91 refactor without macro SIGN 2019-02-02 07:39:23 +01:00
Steffen Jaeckel
18355de625 Update file headers
[skip ci]
2018-12-29 17:56:20 +01:00
czurnieden
7ce3d15995 commented additional preprocessor branch in bn_mp_set_double.c 2018-12-08 10:13:21 +01:00
czurnieden
44e4986bfe made preprocessor warning in bn_mp_set_double.c portable 2018-12-08 10:13:11 +01:00
Francois Perrad
4d6a3cdc93 handle the last value of res 2018-12-01 08:39:54 +01:00
Francois Perrad
d7b7dfee53 explicit cast 2018-12-01 08:39:51 +01:00
Francois Perrad
f186e7bd83 bitwise operation on unsigned 2018-11-28 10:54:02 +01:00
Francois Perrad
d1b52524f1 explicit operator precedence 2018-11-28 10:53:57 +01:00
Francois Perrad
39a15fca7f use NULL instead of 0 2018-11-28 10:53:55 +01:00
Francois Perrad
70af503a6e literal suffix 2018-11-28 10:53:53 +01:00
Francois Perrad
e9b85f9372 rename parameter as in prototype 2018-11-28 10:53:50 +01:00
Francois Perrad
034cd1f444 explicit comparison 2018-11-28 10:53:48 +01:00
Daniel Mendler
2ab527b7e0
add mp_get_double, mp_set_double 2018-11-22 12:05:16 +01:00