| //===-- aeabi_ldivmod.S - EABI ldivmod implementation ---------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| // struct { int64_t quot, int64_t rem} |
| // __aeabi_ldivmod(int64_t numerator, int64_t denominator) { |
| // quot = __divmoddi4(numerator, denominator, &rem); |
| #define __aeabi_ldivmod __rt_sdiv64 |
| DEFINE_COMPILERRT_FUNCTION(__aeabi_ldivmod) |
| bl SYMBOL_NAME(__divmoddi4) |
| END_COMPILERRT_FUNCTION(__aeabi_ldivmod) |