summaryrefslogtreecommitdiffstats
path: root/libtommath/tommath.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 09:52:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-14 09:52:31 (GMT)
commit072f17eb971ae3d3aff015ca39063774c876a17a (patch)
tree4abdb30c3fe612f3be5e3f8fd220e4e38e277ccc /libtommath/tommath.h
parent9c2e378362223c670fe77827649dbdca520715c8 (diff)
parentd7240e068504daa6bd88d4997196572f848e29ad (diff)
downloadtcl-072f17eb971ae3d3aff015ca39063774c876a17a.zip
tcl-072f17eb971ae3d3aff015ca39063774c876a17a.tar.gz
tcl-072f17eb971ae3d3aff015ca39063774c876a17a.tar.bz2
re-import ltm-0.39, with original RCS-ID's
Diffstat (limited to 'libtommath/tommath.h')
-rw-r--r--libtommath/tommath.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h
index 4b3a76f..c778f02 100644
--- a/libtommath/tommath.h
+++ b/libtommath/tommath.h
@@ -219,7 +219,7 @@ int mp_init_size(mp_int *a, int size);
/* ---> 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_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)
/* set to zero */
@@ -577,3 +577,8 @@ extern const char *mp_s_rmap;
#endif
#endif
+
+
+/* $Source: /cvs/libtom/libtommath/tommath.h,v $ */
+/* $Revision: 1.8 $ */
+/* $Date: 2006/03/31 14:18:44 $ */