summaryrefslogtreecommitdiffstats
path: root/generic/tclTomMath.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-23 10:01:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-23 10:01:11 (GMT)
commit01498c5ecda9522a8353a016d1ced6352b10e90a (patch)
tree3681ae7c61996f42fa8e060f4f7591a5cf529b75 /generic/tclTomMath.h
parent76da15f7bca905ca03c054f3c568039eb7551e70 (diff)
parent2df6f12a996d019b78a31c15f5875e2609fb28b2 (diff)
downloadtcl-01498c5ecda9522a8353a016d1ced6352b10e90a.zip
tcl-01498c5ecda9522a8353a016d1ced6352b10e90a.tar.gz
tcl-01498c5ecda9522a8353a016d1ced6352b10e90a.tar.bz2
Merge 8.6.
Also unbreak windows build, broken since [0f2870649c804dd8].
Diffstat (limited to 'generic/tclTomMath.h')
-rw-r--r--generic/tclTomMath.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclTomMath.h b/generic/tclTomMath.h
index f2d327b..74a2c54 100644
--- a/generic/tclTomMath.h
+++ b/generic/tclTomMath.h
@@ -314,8 +314,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 */