2011-03-22 07:30:19 +08:00
|
|
|
//===-- lib/addsf3.c - Single-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 single-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 SINGLE_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 float __addsf3(float a, float 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 float __aeabi_fadd(float a, float b) {
|
|
|
|
return __addsf3(a, b);
|
|
|
|
}
|
2017-10-04 05:25:07 +08:00
|
|
|
#else
|
|
|
|
AEABI_RTABI float __aeabi_fadd(float a, float b) COMPILER_RT_ALIAS(__addsf3);
|
|
|
|
#endif
|
2017-05-17 00:41:37 +08:00
|
|
|
#endif
|