diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-23 09:16:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-23 09:16:37 (GMT) |
commit | 2df6f12a996d019b78a31c15f5875e2609fb28b2 (patch) | |
tree | 55a9f72791801290593f4cec9b4bb2359aab54dc /generic/tclTomMath.h | |
parent | 481c3a3fd52f111e7c645ea5b959fc128fe1d377 (diff) | |
download | tcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.zip tcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.tar.gz tcl-2df6f12a996d019b78a31c15f5875e2609fb28b2.tar.bz2 |
Extend libtommath stub table, so extension writers can move away from deprecated libtommath functions.
Diffstat (limited to 'generic/tclTomMath.h')
-rw-r--r-- | generic/tclTomMath.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclTomMath.h b/generic/tclTomMath.h index 83a31d6..7b720e9 100644 --- a/generic/tclTomMath.h +++ b/generic/tclTomMath.h @@ -323,8 +323,12 @@ mp_err mp_init_size(mp_int *a, int size) MP_WUR; /* ---> Basic Manipulations <--- */ #define mp_iszero(a) (((a)->used == 0) ? MP_YES : MP_NO) -#define mp_iseven(a) (((a)->used == 0 || (((a)->dp[0] & 1) == 0)) ? MP_YES : MP_NO) -#define mp_isodd(a) (((a)->used > 0 && (((a)->dp[0] & 1) == 1)) ? MP_YES : MP_NO) +/* +mp_bool mp_iseven(const mp_int *a) MP_WUR; +*/ +/* +mp_bool mp_isodd(const mp_int *a) MP_WUR; +*/ #define mp_isneg(a) (((a)->sign != MP_ZPOS) ? MP_YES : MP_NO) /* set to zero */ |