addhf3.c
936 Bytes
//===-- lib/addhf3.c - Half-precision addition ------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements single-precision soft-float addition with the IEEE-754
// default rounding (to nearest, ties to even).
//
//===----------------------------------------------------------------------===//
#define HALF_PRECISION
#include "fp_add_impl.inc"
COMPILER_RT_ABI half __addhf3(half a, half b) {
return __addXf3__(a, b);
}
#if defined(__ARM_EABI__)
#if defined(COMPILER_RT_ARMHF_TARGET)
AEABI_RTABI half __aeabi_faddh(half a, half b) {
return __addhf3(a, b);
}
#else
AEABI_RTABI half __aeabi_faddh(half a, half b) COMPILER_RT_ALIAS(__addhf3);
#endif
#endif