Path: blob/main/contrib/llvm-project/compiler-rt/lib/builtins/divdf3.c
35260 views
//===-- lib/divdf3.c - Double-precision division ------------------*- C -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file implements double-precision soft-float division9// with the IEEE-754 default rounding (to nearest, ties to even).10//11//===----------------------------------------------------------------------===//1213#define DOUBLE_PRECISION1415#define NUMBER_OF_HALF_ITERATIONS 316#define NUMBER_OF_FULL_ITERATIONS 11718#include "fp_div_impl.inc"1920COMPILER_RT_ABI fp_t __divdf3(fp_t a, fp_t b) { return __divXf3__(a, b); }2122#if defined(__ARM_EABI__)23#if defined(COMPILER_RT_ARMHF_TARGET)24AEABI_RTABI fp_t __aeabi_ddiv(fp_t a, fp_t b) { return __divdf3(a, b); }25#else26COMPILER_RT_ALIAS(__divdf3, __aeabi_ddiv)27#endif28#endif293031