2018-12-28 08:41:54 +00:00
|
|
|
#include "tommath_private.h"
|
|
|
|
#ifdef BN_MP_ISODD_C
|
2019-04-07 13:29:11 +00:00
|
|
|
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
|
|
|
/* SPDX-License-Identifier: Unlicense */
|
2018-12-28 08:41:54 +00:00
|
|
|
|
2019-05-12 22:22:18 +00:00
|
|
|
mp_bool mp_isodd(const mp_int *a)
|
2018-12-28 08:41:54 +00:00
|
|
|
{
|
2019-04-09 09:08:26 +00:00
|
|
|
return MP_IS_ODD(a) ? MP_YES : MP_NO;
|
2018-12-28 08:41:54 +00:00
|
|
|
}
|
|
|
|
#endif
|