explicit condition (part H)

This commit is contained in:
Francois Perrad 2015-10-25 16:21:17 +01:00 committed by Steffen Jaeckel
parent 9f7811624a
commit e25f1701e4
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ int mp_init_size(mp_int *a, int size);
#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)
#define mp_isneg(a) (((a)->sign) ? MP_YES : MP_NO)
#define mp_isneg(a) (((a)->sign != 0) ? MP_YES : MP_NO)
/* set to zero */
void mp_zero(mp_int *a);