1a6b264b5SAlexey Samsonov //===-- lib/divsf3.c - Single-precision division ------------------*- C -*-===// 2a6b264b5SAlexey Samsonov // 357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6a6b264b5SAlexey Samsonov // 7a6b264b5SAlexey Samsonov //===----------------------------------------------------------------------===// 8a6b264b5SAlexey Samsonov // 9a6b264b5SAlexey Samsonov // This file implements single-precision soft-float division 10a6b264b5SAlexey Samsonov // with the IEEE-754 default rounding (to nearest, ties to even). 11a6b264b5SAlexey Samsonov // 12a6b264b5SAlexey Samsonov //===----------------------------------------------------------------------===// 13a6b264b5SAlexey Samsonov 14a6b264b5SAlexey Samsonov #define SINGLE_PRECISION 15a6b264b5SAlexey Samsonov 16*0e90d8d4SAnatoly Trosinenko #define NUMBER_OF_HALF_ITERATIONS 0 17*0e90d8d4SAnatoly Trosinenko #define NUMBER_OF_FULL_ITERATIONS 3 18*0e90d8d4SAnatoly Trosinenko #define USE_NATIVE_FULL_ITERATIONS 19a6b264b5SAlexey Samsonov 20*0e90d8d4SAnatoly Trosinenko #include "fp_div_impl.inc" 21a6b264b5SAlexey Samsonov __divsf3(fp_t a,fp_t b)22*0e90d8d4SAnatoly TrosinenkoCOMPILER_RT_ABI fp_t __divsf3(fp_t a, fp_t b) { return __divXf3__(a, b); } 2336ac5ddfSSaleem Abdulrasool 2436ac5ddfSSaleem Abdulrasool #if defined(__ARM_EABI__) 250d586d06SEli Friedman #if defined(COMPILER_RT_ARMHF_TARGET) __aeabi_fdiv(fp_t a,fp_t b)26082b89b2SPetr HosekAEABI_RTABI fp_t __aeabi_fdiv(fp_t a, fp_t b) { return __divsf3(a, b); } 270d586d06SEli Friedman #else 2884da0e1bSPetr Hosek COMPILER_RT_ALIAS(__divsf3, __aeabi_fdiv) 2936ac5ddfSSaleem Abdulrasool #endif 300d586d06SEli Friedman #endif 31