From c1d83cd1aacb0b1fb8233ea67d145d3b5aec0550 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 16 Apr 2017 16:14:37 +0000 Subject: [PATCH] Define EXT_IMPLICIT_NBIT like we do on sparc64 and mips64. Makes vaious long double math stuff (including printf) actually work. While there remove 'struct ieee_ldouble', which isn't defined on other architectures. ok deraadt@ --- sys/arch/arm64/include/ieee.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/arch/arm64/include/ieee.h b/sys/arch/arm64/include/ieee.h index 4bc4facf59c..61d530d0dd4 100644 --- a/sys/arch/arm64/include/ieee.h +++ b/sys/arch/arm64/include/ieee.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee.h,v 1.2 2017/01/11 00:18:22 patrick Exp $ */ +/* $OpenBSD: ieee.h,v 1.3 2017/04/16 16:14:37 kettenis Exp $ */ /* $NetBSD: ieee.h,v 1.1 1996/09/30 16:34:25 ws Exp $ */ /* @@ -90,6 +90,8 @@ #define EXT_FRACLBITS 32 #define EXT_FRACBITS 112 +#define EXT_IMPLICIT_NBIT + #define EXT_TO_ARRAY32(p, a) do { \ (a)[0] = (uint32_t)(p)->ext_fracl; \ (a)[1] = (uint32_t)(p)->ext_fraclm; \ @@ -110,13 +112,6 @@ struct ieee_double { u_int dbl_sign:1; }; -struct ieee_ldouble { - u_long ldbl_fracl; - u_long ldbl_frach:20; - u_int ldbl_exp:11; - u_int ldbl_sign:1; -}; - struct ieee_ext { u_int ext_fracl; u_int ext_fraclm; -- 2.20.1