1156cd587Sjoerg //===-- lib/adddf3.c - Double-precision addition ------------------*- C -*-===// 2156cd587Sjoerg // 3156cd587Sjoerg // The LLVM Compiler Infrastructure 4156cd587Sjoerg // 5156cd587Sjoerg // This file is dual licensed under the MIT and the University of Illinois Open 6156cd587Sjoerg // Source Licenses. See LICENSE.TXT for details. 7156cd587Sjoerg // 8156cd587Sjoerg //===----------------------------------------------------------------------===// 9156cd587Sjoerg // 10156cd587Sjoerg // This file implements double-precision soft-float addition with the IEEE-754 11156cd587Sjoerg // default rounding (to nearest, ties to even). 12156cd587Sjoerg // 13156cd587Sjoerg //===----------------------------------------------------------------------===// 14156cd587Sjoerg 15156cd587Sjoerg #define DOUBLE_PRECISION 16190e92d8Sjoerg #include "fp_add_impl.inc" 17156cd587Sjoerg __adddf3(double a,double b)18190e92d8SjoergCOMPILER_RT_ABI double __adddf3(double a, double b){ 19190e92d8Sjoerg return __addXf3__(a, b); 20156cd587Sjoerg } 213044ee7eSrin 223044ee7eSrin #if defined(__ARM_EABI__) 23*d3143459Srin #if defined(COMPILER_RT_ARMHF_TARGET) __aeabi_dadd(double a,double b)243044ee7eSrinAEABI_RTABI double __aeabi_dadd(double a, double b) { 253044ee7eSrin return __adddf3(a, b); 263044ee7eSrin } 27*d3143459Srin #else 28*d3143459Srin AEABI_RTABI double __aeabi_dadd(double a, double b) COMPILER_RT_ALIAS(__adddf3); 293044ee7eSrin #endif 30*d3143459Srin #endif 31