1156cd587Sjoerg /* ===-- udivti3.c - Implement __udivti3 -----------------------------------=== 2156cd587Sjoerg * 3156cd587Sjoerg * The LLVM Compiler Infrastructure 4156cd587Sjoerg * 5156cd587Sjoerg * This file is dual licensed under the MIT and the University of Illinois Open 6156cd587Sjoerg * Source Licenses. See LICENSE.TXT for details. 7156cd587Sjoerg * 8156cd587Sjoerg * ===----------------------------------------------------------------------=== 9156cd587Sjoerg * 10156cd587Sjoerg * This file implements __udivti3 for the compiler_rt library. 11156cd587Sjoerg * 12156cd587Sjoerg * ===----------------------------------------------------------------------=== 13156cd587Sjoerg */ 14156cd587Sjoerg 15156cd587Sjoerg #include "int_lib.h" 16156cd587Sjoerg 17156cd587Sjoerg #ifdef CRT_HAS_128BIT 18156cd587Sjoerg 19156cd587Sjoerg /* Returns: a / b */ 20156cd587Sjoerg 21*f7f78b33Sjoerg COMPILER_RT_ABI tu_int __udivti3(tu_int a,tu_int b)22156cd587Sjoerg__udivti3(tu_int a, tu_int b) 23156cd587Sjoerg { 24156cd587Sjoerg return __udivmodti4(a, b, 0); 25156cd587Sjoerg } 26156cd587Sjoerg 27156cd587Sjoerg #endif /* CRT_HAS_128BIT */ 28