From 266cb5ad57633806f4f7c2e88b185770cb9a3628 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Wed, 3 Jan 2007 05:00:03 +0000 Subject: [PATCH] The distinction between quiet and signaling NaN formats is machine-dependent; these files tell the latest version of gdtoa what to do. --- lib/libc/amd64/gd_qnan.h | 21 +++++++++++++++++++++ lib/libc/arm/gd_qnan.h | 23 +++++++++++++++++++++++ lib/libc/i386/gd_qnan.h | 21 +++++++++++++++++++++ lib/libc/ia64/gd_qnan.h | 21 +++++++++++++++++++++ lib/libc/powerpc/gd_qnan.h | 21 +++++++++++++++++++++ lib/libc/sparc64/gd_qnan.h | 21 +++++++++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 lib/libc/amd64/gd_qnan.h create mode 100644 lib/libc/arm/gd_qnan.h create mode 100644 lib/libc/i386/gd_qnan.h create mode 100644 lib/libc/ia64/gd_qnan.h create mode 100644 lib/libc/powerpc/gd_qnan.h create mode 100644 lib/libc/sparc64/gd_qnan.h diff --git a/lib/libc/amd64/gd_qnan.h b/lib/libc/amd64/gd_qnan.h new file mode 100644 index 000000000000..17b439f131cc --- /dev/null +++ b/lib/libc/amd64/gd_qnan.h @@ -0,0 +1,21 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * $FreeBSD$ + */ + +#define f_QNAN 0xffc00000 +#define d_QNAN0 0x0 +#define d_QNAN1 0xfff80000 +#define ld_QNAN0 0x0 +#define ld_QNAN1 0xc0000000 +#define ld_QNAN2 0xffff +#define ld_QNAN3 0x0 +#define ldus_QNAN0 0x0 +#define ldus_QNAN1 0x0 +#define ldus_QNAN2 0x0 +#define ldus_QNAN3 0xc000 +#define ldus_QNAN4 0xffff diff --git a/lib/libc/arm/gd_qnan.h b/lib/libc/arm/gd_qnan.h new file mode 100644 index 000000000000..13e26dde35f9 --- /dev/null +++ b/lib/libc/arm/gd_qnan.h @@ -0,0 +1,23 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * XXX I don't have ARM hardware, so I just guessed. --das + * + * $FreeBSD$ + */ + +#define f_QNAN 0xffc00000 +#define d_QNAN0 0x0 +#define d_QNAN1 0xfff80000 +#define ld_QNAN0 0x0 +#define ld_QNAN1 0xc0000000 +#define ld_QNAN2 0xffff +#define ld_QNAN3 0x0 +#define ldus_QNAN0 0x0 +#define ldus_QNAN1 0x0 +#define ldus_QNAN2 0x0 +#define ldus_QNAN3 0xc000 +#define ldus_QNAN4 0xffff diff --git a/lib/libc/i386/gd_qnan.h b/lib/libc/i386/gd_qnan.h new file mode 100644 index 000000000000..17b439f131cc --- /dev/null +++ b/lib/libc/i386/gd_qnan.h @@ -0,0 +1,21 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * $FreeBSD$ + */ + +#define f_QNAN 0xffc00000 +#define d_QNAN0 0x0 +#define d_QNAN1 0xfff80000 +#define ld_QNAN0 0x0 +#define ld_QNAN1 0xc0000000 +#define ld_QNAN2 0xffff +#define ld_QNAN3 0x0 +#define ldus_QNAN0 0x0 +#define ldus_QNAN1 0x0 +#define ldus_QNAN2 0x0 +#define ldus_QNAN3 0xc000 +#define ldus_QNAN4 0xffff diff --git a/lib/libc/ia64/gd_qnan.h b/lib/libc/ia64/gd_qnan.h new file mode 100644 index 000000000000..17b439f131cc --- /dev/null +++ b/lib/libc/ia64/gd_qnan.h @@ -0,0 +1,21 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * $FreeBSD$ + */ + +#define f_QNAN 0xffc00000 +#define d_QNAN0 0x0 +#define d_QNAN1 0xfff80000 +#define ld_QNAN0 0x0 +#define ld_QNAN1 0xc0000000 +#define ld_QNAN2 0xffff +#define ld_QNAN3 0x0 +#define ldus_QNAN0 0x0 +#define ldus_QNAN1 0x0 +#define ldus_QNAN2 0x0 +#define ldus_QNAN3 0xc000 +#define ldus_QNAN4 0xffff diff --git a/lib/libc/powerpc/gd_qnan.h b/lib/libc/powerpc/gd_qnan.h new file mode 100644 index 000000000000..d70d8c318c4c --- /dev/null +++ b/lib/libc/powerpc/gd_qnan.h @@ -0,0 +1,21 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * $FreeBSD$ + */ + +#define f_QNAN 0x7fc00000 +#define d_QNAN0 0x7ff80000 +#define d_QNAN1 0x0 +#define ld_QNAN0 0x7ff80000 +#define ld_QNAN1 0x0 +#define ld_QNAN2 0x0 +#define ld_QNAN3 0x0 +#define ldus_QNAN0 0x7ff8 +#define ldus_QNAN1 0x0 +#define ldus_QNAN2 0x0 +#define ldus_QNAN3 0x0 +#define ldus_QNAN4 0x0 diff --git a/lib/libc/sparc64/gd_qnan.h b/lib/libc/sparc64/gd_qnan.h new file mode 100644 index 000000000000..5e2de53d8e5b --- /dev/null +++ b/lib/libc/sparc64/gd_qnan.h @@ -0,0 +1,21 @@ +/* + * MD header for contrib/gdtoa + * + * This file can be generated by compiling and running contrib/gdtoa/qnan.c + * on the target architecture after arith.h has been generated. + * + * $FreeBSD$ + */ + +#define f_QNAN 0x7fffffff +#define d_QNAN0 0x7fffffff +#define d_QNAN1 0xffffffff +#define ld_QNAN0 0x7fffffff +#define ld_QNAN1 0xffffffff +#define ld_QNAN2 0xffffffff +#define ld_QNAN3 0xffffffff +#define ldus_QNAN0 0x7fff +#define ldus_QNAN1 0xffff +#define ldus_QNAN2 0xffff +#define ldus_QNAN3 0xffff +#define ldus_QNAN4 0xffff