xref: /llvm-project/compiler-rt/lib/builtins/umoddi3.c (revision b541196eb45d80f2dacd76e16828963760c3850d)
10ba22f51SPetr Hosek //===-- umoddi3.c - Implement __umoddi3 -----------------------------------===//
20ba22f51SPetr Hosek //
30ba22f51SPetr Hosek // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40ba22f51SPetr Hosek // See https://llvm.org/LICENSE.txt for license information.
50ba22f51SPetr Hosek // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60ba22f51SPetr Hosek //
70ba22f51SPetr Hosek //===----------------------------------------------------------------------===//
80ba22f51SPetr Hosek //
90ba22f51SPetr Hosek // This file implements __umoddi3 for the compiler_rt library.
100ba22f51SPetr Hosek //
110ba22f51SPetr Hosek //===----------------------------------------------------------------------===//
12a6b264b5SAlexey Samsonov 
13a6b264b5SAlexey Samsonov #include "int_lib.h"
14a6b264b5SAlexey Samsonov 
15*b541196eSFangrui Song typedef du_int fixuint_t;
16*b541196eSFangrui Song typedef di_int fixint_t;
17*b541196eSFangrui Song #include "int_div_impl.inc"
18*b541196eSFangrui Song 
190ba22f51SPetr Hosek // Returns: a % b
20a6b264b5SAlexey Samsonov 
__umoddi3(du_int a,du_int b)21082b89b2SPetr Hosek COMPILER_RT_ABI du_int __umoddi3(du_int a, du_int b) {
22*b541196eSFangrui Song   return __umodXi3(a, b);
23a6b264b5SAlexey Samsonov }
24