trunctfdf2.c 616 B

12345678910111213141516171819202122
  1. //===-- lib/truncdfsf2.c - quad -> double conversion --------------*- 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. #define QUAD_PRECISION
  10. #include "fp_lib.h"
  11. #if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
  12. #define SRC_QUAD
  13. #define DST_DOUBLE
  14. #include "fp_trunc_impl.inc"
  15. COMPILER_RT_ABI double __trunctfdf2(long double a) {
  16. return __truncXfYf2__(a);
  17. }
  18. #endif