Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 1 | //===-- lib/truncdfsf2.c - double -> single conversion ------------*- C -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Howard Hinnant | 9ad441f | 2010-11-16 22:13:33 +0000 | [diff] [blame] | 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 9 | |
Joerg Sonnenberger | b8e9b02 | 2014-05-29 00:49:57 +0000 | [diff] [blame] | 10 | #define SRC_DOUBLE |
| 11 | #define DST_SINGLE |
| 12 | #include "fp_trunc_impl.inc" |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 13 | |
Chandler Carruth | 0193b74 | 2012-06-22 21:09:15 +0000 | [diff] [blame] | 14 | ARM_EABI_FNALIAS(d2f, truncdfsf2) |
Anton Korobeynikov | 37b97d1 | 2011-04-19 17:51:24 +0000 | [diff] [blame] | 15 | |
Joerg Sonnenberger | b8e9b02 | 2014-05-29 00:49:57 +0000 | [diff] [blame] | 16 | COMPILER_RT_ABI float __truncdfsf2(double a) { |
| 17 | return __truncXfYf2__(a); |
Stephen Canon | 5c6d2ec | 2010-07-01 17:58:24 +0000 | [diff] [blame] | 18 | } |