2011-03-22 07:30:19 +08:00
|
|
|
//===-- lib/adddf3.c - Double-precision addition ------------------*- C -*-===//
|
2010-07-02 01:58:24 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2010-11-17 06:13:33 +08:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-07-02 01:58:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-03-22 07:30:19 +08:00
|
|
|
// This file implements double-precision soft-float addition with the IEEE-754
|
|
|
|
// default rounding (to nearest, ties to even).
|
2010-07-02 01:58:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2010-07-01 23:52:42 +08:00
|
|
|
|
|
|
|
#define DOUBLE_PRECISION
|
2014-05-28 23:06:25 +08:00
|
|
|
#include "fp_add_impl.inc"
|
2010-07-01 23:52:42 +08:00
|
|
|
|
2014-05-28 23:06:25 +08:00
|
|
|
COMPILER_RT_ABI double __adddf3(double a, double b){
|
|
|
|
return __addXf3__(a, b);
|
2010-07-01 23:52:42 +08:00
|
|
|
}
|
2017-05-17 00:41:37 +08:00
|
|
|
|
|
|
|
#if defined(__ARM_EABI__)
|
2017-10-04 05:25:07 +08:00
|
|
|
#if defined(COMPILER_RT_ARMHF_TARGET)
|
2017-05-17 00:41:37 +08:00
|
|
|
AEABI_RTABI double __aeabi_dadd(double a, double b) {
|
|
|
|
return __adddf3(a, b);
|
|
|
|
}
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
|
|
|
AEABI_RTABI double __aeabi_dadd(double a, double b) COMPILER_RT_ALIAS(__adddf3);
|
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|