udivti3.c 699 B

1234567891011121314151617181920212223
  1. //===-- udivti3.c - Implement __udivti3 -----------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file implements __udivti3 for the compiler_rt library.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "int_lib.h"
  13. #ifdef CRT_HAS_128BIT
  14. // Returns: a / b
  15. COMPILER_RT_ABI tu_int __udivti3(tu_int a, tu_int b) {
  16. return __udivmodti4(a, b, 0);
  17. }
  18. #endif // CRT_HAS_128BIT