Skip to content

Commit 4827177

Browse files
committed
Updated per review + fix.
1 parent 4372a30 commit 4827177

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

compiler-rt/lib/builtins/extendhfdf2.c

+1-11
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212

1313
// Use a forwarding definition and noinline to implement a poor man's alias,
1414
// as there isn't a good cross-platform way of defining one.
15-
COMPILER_RT_ABI NOINLINE float __extendhfdf2(src_t a) {
15+
COMPILER_RT_ABI NOINLINE dst_t __extendhfdf2(src_t a) {
1616
return __extendXfYf2__(a);
1717
}
18-
19-
COMPILER_RT_ABI float __gnu_h2d_ieee(src_t a) { return __extendhfdf2(a); }
20-
21-
#if defined(__ARM_EABI__)
22-
#if defined(COMPILER_RT_ARMHF_TARGET)
23-
AEABI_RTABI float __aeabi_h2d(src_t a) { return __extendhfdf2(a); }
24-
#else
25-
COMPILER_RT_ALIAS(__extendhfdf2, __aeabi_h2d)
26-
#endif
27-
#endif

compiler-rt/lib/builtins/extendhftf2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define QUAD_PRECISION
1111
#include "fp_lib.h"
1212

13-
#if defined(CRT_HAS_TF_MODE)
13+
#if defined(CRT_HAS_TF_MODE) && defined(COMPILER_RT_HAS_FLOAT16)
1414
#define SRC_HALF
1515
#define DST_QUAD
1616
#include "fp_extend_impl.inc"

0 commit comments

Comments
 (0)