udivti3.c revision 263763
1275988Sngie/* ===-- udivti3.c - Implement __udivti3 -----------------------------------===
2240116Smarcel *
3240116Smarcel *                     The LLVM Compiler Infrastructure
4240116Smarcel *
5240116Smarcel * This file is dual licensed under the MIT and the University of Illinois Open
6240116Smarcel * Source Licenses. See LICENSE.TXT for details.
7240116Smarcel *
8240116Smarcel * ===----------------------------------------------------------------------===
9240116Smarcel *
10240116Smarcel * This file implements __udivti3 for the compiler_rt library.
11240116Smarcel *
12240116Smarcel * ===----------------------------------------------------------------------===
13240116Smarcel */
14240116Smarcel
15240116Smarcel#include "int_lib.h"
16240116Smarcel
17240116Smarcel#ifdef CRT_HAS_128BIT
18240116Smarcel
19240116Smarceltu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem);
20240116Smarcel
21240116Smarcel/* Returns: a / b */
22240116Smarcel
23240116Smarceltu_int
24275988Sngie__udivti3(tu_int a, tu_int b)
25240116Smarcel{
26240116Smarcel    return __udivmodti4(a, b, 0);
27240116Smarcel}
28240116Smarcel
29240116Smarcel#endif /* CRT_HAS_128BIT */
30240116Smarcel