bn_mp_iseven.c 250 B

12345678910
  1. #include "tommath_private.h"
  2. #ifdef BN_MP_ISEVEN_C
  3. /* LibTomMath, multiple-precision integer library -- Tom St Denis */
  4. /* SPDX-License-Identifier: Unlicense */
  5. mp_bool mp_iseven(const mp_int *a)
  6. {
  7. return MP_IS_EVEN(a) ? MP_YES : MP_NO;
  8. }
  9. #endif