1 #include "tommath_private.h"
3 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
4 /* SPDX-License-Identifier: Unlicense */
8 * Simple function copies the input and fixes the sign to positive
10 mp_err mp_abs(const mp_int *a, mp_int *b)
16 if ((err = mp_copy(a, b)) != MP_OKAY) {
21 /* force the sign of b to positive */