xref: /llvm-project/compiler-rt/lib/builtins/adddf3.c (revision 33b8a55329b9a968e4f2d859610d638d7fb394e5)
1a6b264b5SAlexey Samsonov //===-- lib/adddf3.c - Double-precision addition ------------------*- 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 //
9*33b8a553SYi Kong // This file implements double-precision soft-float addition.
10a6b264b5SAlexey Samsonov //
11a6b264b5SAlexey Samsonov //===----------------------------------------------------------------------===//
12a6b264b5SAlexey Samsonov 
13a6b264b5SAlexey Samsonov #define DOUBLE_PRECISION
14d21cd147SJoerg Sonnenberger #include "fp_add_impl.inc"
15a6b264b5SAlexey Samsonov 
__adddf3(double a,double b)16082b89b2SPetr Hosek COMPILER_RT_ABI double __adddf3(double a, double b) { return __addXf3__(a, b); }
1736ac5ddfSSaleem Abdulrasool 
1836ac5ddfSSaleem Abdulrasool #if defined(__ARM_EABI__)
190d586d06SEli Friedman #if defined(COMPILER_RT_ARMHF_TARGET)
__aeabi_dadd(double a,double b)20082b89b2SPetr Hosek AEABI_RTABI double __aeabi_dadd(double a, double b) { return __adddf3(a, b); }
210d586d06SEli Friedman #else
2284da0e1bSPetr Hosek COMPILER_RT_ALIAS(__adddf3, __aeabi_dadd)
2336ac5ddfSSaleem Abdulrasool #endif
240d586d06SEli Friedman #endif
25