xref: /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/addtf3.c (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1 //===-- lib/addtf3.c - Quad-precision addition --------------------*- C -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements quad-precision soft-float addition.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #define QUAD_PRECISION
14 #include "fp_lib.h"
15 
16 #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
17 #include "fp_add_impl.inc"
18 
19 COMPILER_RT_ABI fp_t __addtf3(fp_t a, fp_t b) {
20   return __addXf3__(a, b);
21 }
22 
23 #endif
24