File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ set(GENERIC_SOURCES
104
104
divti3.c
105
105
extendsfdf2.c
106
106
extendhfsf2.c
107
+ extendhfxf2.c
107
108
ffsdi2.c
108
109
ffssi2.c
109
110
ffsti2.c
Original file line number Diff line number Diff line change
1
+ //===-- lib/extendhfxf2.c - half -> long double conversion -------------*- C -*-===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+
9
+ #define SRC_HALF
10
+ #define DST_DOUBLE
11
+ #include "fp_extend_impl.inc"
12
+
13
+ // Use a forwarding definition and noinline to implement a poor man's alias,
14
+ // as there isn't a good cross-platform way of defining one.
15
+ // Long double are expected to be as precise as double.
16
+ COMPILER_RT_ABI NOINLINE long double __extendhfxf2 (src_t a ) {
17
+ return (long double )__extendXfYf2__ (a );
18
+ }
Original file line number Diff line number Diff line change 60
60
divsi3
61
61
extendsfdf2
62
62
extendhfsf2
63
+ extendhfxf2
63
64
ffssi2
64
65
fixdfsi
65
66
fixsfsi
You can’t perform that action at this time.
0 commit comments