trunctfdf2.c revision 276789
1276789Sdim//===-- lib/truncdfsf2.c - quad -> double conversion --------------*- C -*-===//
2276789Sdim//
3276789Sdim//                     The LLVM Compiler Infrastructure
4276789Sdim//
5276789Sdim// This file is dual licensed under the MIT and the University of Illinois Open
6276789Sdim// Source Licenses. See LICENSE.TXT for details.
7276789Sdim//
8276789Sdim//===----------------------------------------------------------------------===//
9276789Sdim
10276789Sdim#define QUAD_PRECISION
11276789Sdim#include "fp_lib.h"
12276789Sdim
13276789Sdim#if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
14276789Sdim#define SRC_QUAD
15276789Sdim#define DST_DOUBLE
16276789Sdim#include "fp_trunc_impl.inc"
17276789Sdim
18276789SdimCOMPILER_RT_ABI double __trunctfdf2(long double a) {
19276789Sdim    return __truncXfYf2__(a);
20276789Sdim}
21276789Sdim
22276789Sdim#endif
23