1 #include "tommath_private.h"
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
6 /* clear one (frees) */
7 void mp_clear(mp_int
*a
)
9 /* only do anything if a hasn't been freed previously */
12 MP_FREE_DIGS(a
->dp
, a
->alloc
);
14 /* reset members to make debugging easier */
16 a
->alloc
= a
->used
= 0;