blob: 46ec11dccd796f58e408ee0079d879846b0311b4 [file] [log] [blame]
Stephen Canon5c6d2ec2010-07-01 17:58:24 +00001//===-- lib/truncdfsf2.c - double -> single conversion ------------*- C -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant9ad441f2010-11-16 22:13:33 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Stephen Canon5c6d2ec2010-07-01 17:58:24 +00007//
8//===----------------------------------------------------------------------===//
Stephen Canon5c6d2ec2010-07-01 17:58:24 +00009
Joerg Sonnenbergerb8e9b022014-05-29 00:49:57 +000010#define SRC_DOUBLE
11#define DST_SINGLE
12#include "fp_trunc_impl.inc"
Stephen Canon5c6d2ec2010-07-01 17:58:24 +000013
Chandler Carruth0193b742012-06-22 21:09:15 +000014ARM_EABI_FNALIAS(d2f, truncdfsf2)
Anton Korobeynikov37b97d12011-04-19 17:51:24 +000015
Joerg Sonnenbergerb8e9b022014-05-29 00:49:57 +000016COMPILER_RT_ABI float __truncdfsf2(double a) {
17 return __truncXfYf2__(a);
Stephen Canon5c6d2ec2010-07-01 17:58:24 +000018}