Ahmed Bougacha | f1ac850 | 2015-05-12 18:33:42 +0000 | [diff] [blame] | 1 | //===-- lib/truncdfhf2.c - double -> half 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 | |
| 10 | #define SRC_DOUBLE |
| 11 | #define DST_HALF |
| 12 | #include "fp_trunc_impl.inc" |
| 13 | |
Oliver Stannard | 28d2eda | 2015-10-07 16:15:22 +0000 | [diff] [blame] | 14 | ARM_EABI_FNALIAS(d2h, truncdfhf2) |
| 15 | |
Ahmed Bougacha | f1ac850 | 2015-05-12 18:33:42 +0000 | [diff] [blame] | 16 | COMPILER_RT_ABI uint16_t __truncdfhf2(double a) { |
| 17 | return __truncXfYf2__(a); |
| 18 | } |