summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_isodd.c
blob: bf17646d703682ab68bc5ae43dc70583ac8d17e9 (plain)
1
2
3
4
5
6
7
8
9
10
#include "tommath_private.h"
#ifdef BN_MP_ISODD_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */

mp_bool mp_isodd(const mp_int *a)
{
   return MP_IS_ODD(a) ? MP_YES : MP_NO;
}
#endif