LCOV - code coverage report
Current view: top level - third_party/heimdal/lib/hcrypto/libtommath - bn_mp_set.c (source / functions) Hit Total Coverage
Test: coverage report for v4-17-test 1498b464 Lines: 6 6 100.0 %
Date: 2024-06-13 04:01:37 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "tommath_private.h"
       2             : #ifdef BN_MP_SET_C
       3             : /* LibTomMath, multiple-precision integer library -- Tom St Denis */
       4             : /* SPDX-License-Identifier: Unlicense */
       5             : 
       6             : /* set to a digit */
       7          38 : void mp_set(mp_int *a, mp_digit b)
       8             : {
       9          38 :    a->dp[0] = b & MP_MASK;
      10          38 :    a->sign  = MP_ZPOS;
      11          38 :    a->used  = (a->dp[0] != 0u) ? 1 : 0;
      12          38 :    MP_ZERO_DIGITS(a->dp + a->used, a->alloc - a->used);
      13          38 : }
      14             : #endif

Generated by: LCOV version 1.13