diff options
Diffstat (limited to 'contrib/compiler-rt/lib/builtins/truncdfhf2.c')
-rw-r--r-- | contrib/compiler-rt/lib/builtins/truncdfhf2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/builtins/truncdfhf2.c b/contrib/compiler-rt/lib/builtins/truncdfhf2.c new file mode 100644 index 0000000..0852df3 --- /dev/null +++ b/contrib/compiler-rt/lib/builtins/truncdfhf2.c @@ -0,0 +1,16 @@ +//===-- lib/truncdfhf2.c - double -> half conversion --------------*- C -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#define SRC_DOUBLE +#define DST_HALF +#include "fp_trunc_impl.inc" + +COMPILER_RT_ABI uint16_t __truncdfhf2(double a) { + return __truncXfYf2__(a); +} |