Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 16:59:19 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 137330 for review
Message-ID:  <200803101659.m2AGxJj7019480@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137330

Change 137330 by rrs@rrs-mips2-jnpr on 2008/03/10 16:58:34

	Fix the math variables... there still may be issues
	       with the Little endian versions.

Affected files ...

.. //depot/projects/mips2-jnpr/src/lib/libc/mips/gd_qnan.h#2 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/lib/libc/mips/gd_qnan.h#2 (text+ko) ====

@@ -1,12 +1,48 @@
-/* $NetBSD: gd_qnan.h,v 1.1 2006/01/25 15:33:28 kleink Exp $ */
+/*
+ * 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: src/lib/libc/mips/gd_qnan.h,v $
+ */
+
 
 #include <machine/endian.h>
 
-#define f_QNAN 0x7fa00000
 #if BYTE_ORDER == BIG_ENDIAN
-#define d_QNAN0 0x7ff40000
+/* These values were gained on a running
+ * Octeon in Big Endian order. They were gotten
+ * by running ./qnan after arithchk was ran and
+ * got us the proper values for arith.h.
+ */
+#define f_QNAN 0x7f900000
+#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
 #else
+/* FIX FIX, need to run this on a Little Endian
+ * machine and get the proper values, these here
+ * were stolen fromn i386/gd_qnan.h
+ */
+#define f_QNAN 0x7fc00000
 #define d_QNAN0 0x0
-#define d_QNAN1 0x7ff40000
+#define d_QNAN1 0x7ff80000
+#define ld_QNAN0 0x0
+#define ld_QNAN1 0xc0000000
+#define ld_QNAN2 0x7fff
+#define ld_QNAN3 0x0
+#define ldus_QNAN0 0x0
+#define ldus_QNAN1 0x0
+#define ldus_QNAN2 0x0
+#define ldus_QNAN3 0xc000
+#define ldus_QNAN4 0x7fff
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803101659.m2AGxJj7019480>