addtf3.c 804 B

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