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

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

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