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

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

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

	Fix math variables for mips (note still may have a problem
	       with little endian versions).

Affected files ...

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

Differences ...

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

@@ -10,7 +10,20 @@
  * generated by running contrib/gdtoa/arithchk.c on the target
  * architecture.  See contrib/gdtoa/gdtoaimp.h for details.
  */
-/* TODO: check these values */
+#include <machine/endian.h>
+
+#if BYTE_ORDER == BIG_ENDIAN
+#define IEEE_MC68k
+#define Arith_Kind_ASL 2
+#define Double_Align
+#else
+/* TODO: Generate these values on a LE machine */
+/* Current values were stolen from ia64 except the
+ * Xpointer define.
+ */
 #define IEEE_8087
 #define Arith_Kind_ASL 1
-#define Sudden_Underflow
+#define Long int
+#define Intcast (int)(long)
+#define Double_Align
+#endif



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