2009-08-07 20:30:09 +00:00
|
|
|
//===-- udivdi3.c - Implement __udivdi3 -----------------------------------===//
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2019-01-19 10:56:40 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2009-08-07 20:30:09 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2009-08-07 20:30:09 +00:00
|
|
|
// This file implements __udivdi3 for the compiler_rt library.
|
2019-04-28 22:47:49 +00:00
|
|
|
//
|
2009-08-07 20:30:09 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2009-06-26 16:47:03 +00:00
|
|
|
|
|
|
|
#include "int_lib.h"
|
|
|
|
|
2020-04-10 15:14:52 -07:00
|
|
|
typedef du_int fixuint_t;
|
|
|
|
typedef di_int fixint_t;
|
|
|
|
#include "int_div_impl.inc"
|
|
|
|
|
2009-08-07 20:30:09 +00:00
|
|
|
// Returns: a / b
|
2009-06-26 16:47:03 +00:00
|
|
|
|
|
|
|
COMPILER_RT_ABI du_int __udivdi3(du_int a, du_int b) {
|
2020-04-10 15:14:52 -07:00
|
|
|
return __udivXi3(a, b);
|
2009-06-26 16:47:03 +00:00
|
|
|
}
|