1276789Sdim//===-- lib/trunctfsf2.c - quad -> single 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_SINGLE 16276789Sdim#include "fp_trunc_impl.inc" 17276789Sdim 18276789SdimCOMPILER_RT_ABI float __trunctfsf2(long double a) { 19276789Sdim return __truncXfYf2__(a); 20276789Sdim} 21276789Sdim 22276789Sdim#endif 23