Home | History | Annotate | Line # | Download | only in builtins
      1  1.1  joerg //===-- lib/adddf3.c - Double-precision addition ------------------*- C -*-===//
      2  1.1  joerg //
      3  1.1  joerg //                     The LLVM Compiler Infrastructure
      4  1.1  joerg //
      5  1.1  joerg // This file is dual licensed under the MIT and the University of Illinois Open
      6  1.1  joerg // Source Licenses. See LICENSE.TXT for details.
      7  1.1  joerg //
      8  1.1  joerg //===----------------------------------------------------------------------===//
      9  1.1  joerg //
     10  1.1  joerg // This file implements double-precision soft-float addition with the IEEE-754
     11  1.1  joerg // default rounding (to nearest, ties to even).
     12  1.1  joerg //
     13  1.1  joerg //===----------------------------------------------------------------------===//
     14  1.1  joerg 
     15  1.1  joerg #define DOUBLE_PRECISION
     16  1.2    rin #include "fp_add_impl.inc"
     17  1.1  joerg 
     18  1.2    rin COMPILER_RT_ABI double __adddf3(double a, double b){
     19  1.2    rin     return __addXf3__(a, b);
     20  1.2    rin }
     21  1.1  joerg 
     22  1.2    rin #if defined(__ARM_EABI__)
     23  1.3    rin #if defined(COMPILER_RT_ARMHF_TARGET)
     24  1.2    rin AEABI_RTABI double __aeabi_dadd(double a, double b) {
     25  1.2    rin   return __adddf3(a, b);
     26  1.1  joerg }
     27  1.3    rin #else
     28  1.3    rin AEABI_RTABI double __aeabi_dadd(double a, double b) COMPILER_RT_ALIAS(__adddf3);
     29  1.3    rin #endif
     30  1.2    rin #endif
     31