Skip to content

Commit e76656e

Browse files
committed
Update configure scripts
1 parent 1042ae2 commit e76656e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

erts/config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@
438438
/* Define if x86/x86_64 out of order instructions should be synchronized */
439439
#undef ETHR_X86_OUT_OF_ORDER
440440

441+
/* Define to 1 if _Float16 can be converted from/to double. */
442+
#undef FLOAT16_IS_CONVERTIBLE
443+
441444
/* Define to 1 if you have the <arpa/nameser.h> header file. */
442445
#undef HAVE_ARPA_NAMESER_H
443446

erts/configure

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19754,6 +19754,37 @@ printf "%s\n" "#define SIZEOF__FLOAT16 $ac_cv_sizeof__Float16" >>confdefs.h
1975419754

1975519755

1975619756

19757+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758+
/* end confdefs.h. */
19759+
_Float16 x = 0.0;
19760+
int
19761+
main (void)
19762+
{
19763+
19764+
;
19765+
return 0;
19766+
}
19767+
_ACEOF
19768+
if ac_fn_c_try_compile "$LINENO"
19769+
then :
19770+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Float16 convertible" >&5
19771+
printf %s "checking for _Float16 convertible... " >&6; }
19772+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19773+
printf "%s\n" "yes" >&6; }
19774+
19775+
printf "%s\n" "#define FLOAT16_IS_CONVERTIBLE 1" >>confdefs.h
19776+
19777+
19778+
else case e in #(
19779+
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Float16 convertible" >&5
19780+
printf %s "checking for _Float16 convertible... " >&6; }
19781+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782+
printf "%s\n" "no" >&6; }
19783+
;;
19784+
esac
19785+
fi
19786+
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19787+
1975719788
BITS64=
1975819789

1975919790
if test $ac_cv_sizeof_void_p = 8; then

0 commit comments

Comments
 (0)