LCOV - code coverage report
Current view: top level - third_party/heimdal/lib/hcrypto/libtommath - bn_mp_pack_count.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 0 3 0.0 %
Date: 2024-04-21 15:09:00 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "tommath_private.h"
       2             : #ifdef BN_MP_PACK_COUNT_C
       3             : /* LibTomMath, multiple-precision integer library -- Tom St Denis */
       4             : /* SPDX-License-Identifier: Unlicense */
       5             : 
       6           0 : size_t mp_pack_count(const mp_int *a, size_t nails, size_t size)
       7             : {
       8           0 :    size_t bits = (size_t)mp_count_bits(a);
       9           0 :    return ((bits / ((size * 8u) - nails)) + (((bits % ((size * 8u) - nails)) != 0u) ? 1u : 0u));
      10             : }
      11             : 
      12             : #endif

Generated by: LCOV version 1.14