summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_unpack_big.c
blob: 83cf805e0ee8964864adbd4653ccf749b9903bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <stdint.h>
#include <skalibs/uint32.h>
#include <skalibs/biguint.h>

void bu_unpack_big (char const *s, uint32_t *a, unsigned int n)
{
  register unsigned int i = 0 ;
  for (; i < n ; i++) uint32_unpack_big(s + (i<<2), a + n - 1 - i) ;
}