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

          Line data    Source code
       1             : #include "tommath_private.h"
       2             : #ifdef BN_MP_EXCH_C
       3             : /* LibTomMath, multiple-precision integer library -- Tom St Denis */
       4             : /* SPDX-License-Identifier: Unlicense */
       5             : 
       6             : /* swap the elements of two integers, for cases where you can't simply swap the
       7             :  * mp_int pointers around
       8             :  */
       9        4475 : void mp_exch(mp_int *a, mp_int *b)
      10             : {
      11         202 :    mp_int  t;
      12             : 
      13        4475 :    t  = *a;
      14        4475 :    *a = *b;
      15        4475 :    *b = t;
      16        4475 : }
      17             : #endif

Generated by: LCOV version 1.14