10b57cec5SDimitry Andric //===-- lib/addtf3.c - Quad-precision addition --------------------*- C -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric // This file implements quad-precision soft-float addition with the IEEE-754
100b57cec5SDimitry Andric // default rounding (to nearest, ties to even).
110b57cec5SDimitry Andric //
120b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric #define QUAD_PRECISION
150b57cec5SDimitry Andric #include "fp_lib.h"
160b57cec5SDimitry Andric 
170b57cec5SDimitry Andric #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
180b57cec5SDimitry Andric #include "fp_add_impl.inc"
190b57cec5SDimitry Andric 
200b57cec5SDimitry Andric COMPILER_RT_ABI long double __addtf3(long double a, long double b) {
210b57cec5SDimitry Andric   return __addXf3__(a, b);
220b57cec5SDimitry Andric }
230b57cec5SDimitry Andric 
240b57cec5SDimitry Andric #endif
25