10b57cec5SDimitry Andric //===-- udivsi3.c - Implement __udivsi3 -----------------------------------===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This file implements __udivsi3 for the compiler_rt library. 100b57cec5SDimitry Andric // 110b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric #include "int_lib.h" 140b57cec5SDimitry Andric 15*5ffd83dbSDimitry Andric typedef su_int fixuint_t; 16*5ffd83dbSDimitry Andric typedef si_int fixint_t; 17*5ffd83dbSDimitry Andric #include "int_div_impl.inc" 18*5ffd83dbSDimitry Andric 190b57cec5SDimitry Andric // Returns: a / b 200b57cec5SDimitry Andric __udivsi3(su_int a,su_int b)21*5ffd83dbSDimitry AndricCOMPILER_RT_ABI su_int __udivsi3(su_int a, su_int b) { 22*5ffd83dbSDimitry Andric return __udivXi3(a, b); 230b57cec5SDimitry Andric } 240b57cec5SDimitry Andric 250b57cec5SDimitry Andric #if defined(__ARM_EABI__) 260b57cec5SDimitry Andric COMPILER_RT_ALIAS(__udivsi3, __aeabi_uidiv) 270b57cec5SDimitry Andric #endif 28