Artifact 570b5cc172f9498b621f25518b8421bfb3fa1d76c51ac75f492d4de4a684d71c:
- File libtommath/bn_s_mp_reverse.c — part of check-in [7d72d6cbfb] at 2019-10-07 11:37:36 on branch libtommath — Update to latest "develop" branch (user: jan.nijtmans, size: 448) [annotate] [blame] [check-ins using] [more...]
#include "tommath_private.h" #ifdef BN_S_MP_REVERSE_C /* LibTomMath, multiple-precision integer library -- Tom St Denis */ /* SPDX-License-Identifier: Unlicense */ /* reverse an array, used for radix code */ void s_mp_reverse(unsigned char *s, size_t len) { size_t ix, iy; unsigned char t; ix = 0u; iy = len - 1u; while (ix < iy) { t = s[ix]; s[ix] = s[iy]; s[iy] = t; ++ix; --iy; } } #endif