bn_mp_sub_d.c


Log

Author Commit Date CI Message
Daniel Mendler 1af0de1f 2019-05-20T19:11:25 deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor) * same behavior for positive numbers * generalisation for negative numbers, treating them as two complement * improve algorithm, iterate once over the digits, manually perform two complement * simplify mp_add_d, mp_sub_d * functions are safe in case of a==c or b==c * renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
Francois Perrad 8b2daf78 2019-05-19T17:16:13 always use varname err with mp_err
Daniel Mendler 4534056c 2019-05-13T00:22:18 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
Daniel Mendler 61d9e528 2019-05-11T10:22:20 hardening: add MP_ZERO_BUFFER, MP_ZERO_DIGITS * (!) Always zero buffer before freeing if MP_NO_ZERO_ON_FREE is not defined * Add MP_NO_ZERO_ON_FREE to disable hardening * Add MP_ZERO_BUFFER, MP_ZERO_DIGITS, MP_FREE_BUFFFER, MP_FREE_DIGITS * Never use MP_FREE directly, use MP_FREE_DIGITS or MP_FREE_BUFFER * Add MP_USE_MEMSET to use memset instead of loop * Disable astyle backups which are annonying in the times of git
Francois Perrad 556219aa 2019-05-09T22:07:13 refactor with new private macro MP_SIZEOF_BITS CHAR_BIT is no longer directly used
Daniel Mendler ff561404 2019-04-07T15:29:11 shorter headers
Daniel Mendler 70a30ae7 2019-04-07T02:29:28 remove footers
Daniel Mendler 5da4e0ac 2019-04-04T23:06:00 remove unnecessary size_t casts, fix Wconversion/Wsign-conversion issues Wconversion and Wsign-conversion is still not activated by default, since there are many issues in demo.c.
Steffen Jaeckel 18355de6 2018-12-29T17:56:20 Update file headers [skip ci]
czurnieden 9034e712 2018-05-02T21:43:17 Do not use installed headers for building
Steffen Jaeckel f51249b6 2018-02-02T12:07:21 clean-up file headers
Francois Perrad bdbed000 2017-10-15T19:57:12 literal suffix
nijtmans f674018a 2017-09-20T16:59:43 constify remaining functions
Francois Perrad a20d9b10 2017-08-30T19:13:53 format with astyle (step 4)
Francois Perrad 45771cc9 2017-08-30T19:07:12 format with astyle (step 1)
Francois Perrad ef6c71f1 2015-11-29T14:58:46 return type of function on the same line
Steffen Jaeckel 6f212942 2017-08-28T16:27:26 replace SVN tags
Francois Perrad 99c84acc 2015-11-13T10:28:23 add parentheses for explicit operator precedence
Steffen Jaeckel 4e3f1344 2015-11-12T01:49:07 provide tommath_private.h tommath.h contains declarations for the public part of the library. tommath_private.h contains the functions which are private to ltm and should not be exposed to the public.
Tom St Denis 079b0f65 2015-10-30T17:55:29 Getting ready for v0.43.0 release Also updated my email address... Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
Tom St Denis 333aebc8 2007-04-18T09:58:18 added libtommath-0.41
Tom St Denis f0b91a57 2006-04-06T19:49:59 added libtommath-0.39
Tom St Denis fde740ea 2005-11-18T05:16:19 added libtommath-0.37
Tom St Denis 9294e791 2005-08-01T16:37:28 added libtommath-0.36
Tom St Denis e549ccfe 2004-10-29T22:07:18 added libtommath-0.32
Tom St Denis c343371b 2003-09-19T22:43:07 added libtommath-0.27
Tom St Denis c1da6aa2 2003-08-05T01:24:44 added libtommath-0.25
Tom St Denis 03cc01b5 2003-07-16T00:26:58 added libtommath-0.24
Tom St Denis 82f48582 2003-03-13T02:11:11 added libtommath-0.14
Tom St Denis b66471f7 2003-02-28T16:09:08 added libtommath-0.13
Tom St Denis 57354e11 2003-02-28T16:08:34 added libtommath-0.12