Artifact 843a713a74452ce61343c44857cf5fd6a57f45f18da18594a8187d38ff405ade:
- File libtommath/bn_mp_ubin_size.c — part of check-in [7d72d6cbfb] at 2019-10-07 11:37:36 on branch libtommath — Update to latest "develop" branch (user: jan.nijtmans size: 359) [more...]
#include "tommath_private.h" #ifdef BN_MP_UBIN_SIZE_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ /* get the size for an unsigned equivalent */ size_t mp_ubin_size(const mp_int *a) { size_t size = (size_t)mp_count_bits(a); return (size / 8u) + (((size & 7u) != 0u) ? 1u : 0u); } #endif