summaryrefslogtreecommitdiff
path: root/klibc/klibc/libgcc/__umodsi3.c
blob: e3db972c4e0543527f1555f80a41330cdc4edcd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * libgcc/__umodsi3.c
 */

#include <stdint.h>
#include <stddef.h>

extern uint32_t __udivmodsi4(uint32_t num, uint32_t den, uint32_t *rem);

uint32_t __umodsi3(uint32_t num, uint32_t den)
{
  uint32_t v;

  (void) __udivmodsi4(num, den, &v);
  return v;
}