xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/builtins/addtf3.c (revision 190e92d8bd37e45d8e87aa8ef29912912a8ec314)
1*190e92d8Sjoerg //===-- lib/addtf3.c - Quad-precision addition --------------------*- C -*-===//
2*190e92d8Sjoerg //
3*190e92d8Sjoerg //                     The LLVM Compiler Infrastructure
4*190e92d8Sjoerg //
5*190e92d8Sjoerg // This file is dual licensed under the MIT and the University of Illinois Open
6*190e92d8Sjoerg // Source Licenses. See LICENSE.TXT for details.
7*190e92d8Sjoerg //
8*190e92d8Sjoerg //===----------------------------------------------------------------------===//
9*190e92d8Sjoerg //
10*190e92d8Sjoerg // This file implements quad-precision soft-float addition with the IEEE-754
11*190e92d8Sjoerg // default rounding (to nearest, ties to even).
12*190e92d8Sjoerg //
13*190e92d8Sjoerg //===----------------------------------------------------------------------===//
14*190e92d8Sjoerg 
15*190e92d8Sjoerg #define QUAD_PRECISION
16*190e92d8Sjoerg #include "fp_lib.h"
17*190e92d8Sjoerg 
18*190e92d8Sjoerg #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
19*190e92d8Sjoerg #include "fp_add_impl.inc"
20*190e92d8Sjoerg 
__addtf3(long double a,long double b)21*190e92d8Sjoerg COMPILER_RT_ABI long double __addtf3(long double a, long double b){
22*190e92d8Sjoerg     return __addXf3__(a, b);
23*190e92d8Sjoerg }
24*190e92d8Sjoerg 
25*190e92d8Sjoerg #endif
26