1156cd587Sjoerg //===-- lib/addsf3.c - Single-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 single-precision soft-float addition with the IEEE-754 11156cd587Sjoerg // default rounding (to nearest, ties to even). 12156cd587Sjoerg // 13156cd587Sjoerg //===----------------------------------------------------------------------===// 14156cd587Sjoerg 15156cd587Sjoerg #define SINGLE_PRECISION 16190e92d8Sjoerg #include "fp_add_impl.inc" 17156cd587Sjoerg __addsf3(float a,float b)18190e92d8SjoergCOMPILER_RT_ABI float __addsf3(float a, float b) { 19190e92d8Sjoerg return __addXf3__(a, b); 20156cd587Sjoerg } 213044ee7eSrin 223044ee7eSrin #if defined(__ARM_EABI__) 23*d3143459Srin #if defined(COMPILER_RT_ARMHF_TARGET) __aeabi_fadd(float a,float b)243044ee7eSrinAEABI_RTABI float __aeabi_fadd(float a, float b) { 253044ee7eSrin return __addsf3(a, b); 263044ee7eSrin } 27*d3143459Srin #else 28*d3143459Srin AEABI_RTABI float __aeabi_fadd(float a, float b) COMPILER_RT_ALIAS(__addsf3); 293044ee7eSrin #endif 30*d3143459Srin #endif 31