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

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

int bu_mod (uint32_t *a, unsigned int an, uint32_t const *b, unsigned int bn)
{
  uint32_t q[an] ;
  return bu_div(a, an, b, bn, q, an, a, an) ;
}