Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/vax/gen Set infinity to the highest D-float po...



details:   https://anonhg.NetBSD.org/src/rev/c32fcbc30d9f
branches:  trunk
changeset: 471991:c32fcbc30d9f
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sat Apr 17 14:53:32 1999 +0000

description:
Set infinity to the highest D-float possible.
XXX - infinity does not exist on vax...

diffstat:

 lib/libc/arch/vax/gen/infinity.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r 4079511d9cf0 -r c32fcbc30d9f lib/libc/arch/vax/gen/infinity.c
--- a/lib/libc/arch/vax/gen/infinity.c  Sat Apr 17 13:16:39 1999 +0000
+++ b/lib/libc/arch/vax/gen/infinity.c  Sat Apr 17 14:53:32 1999 +0000
@@ -1,16 +1,17 @@
-/*     $NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $    */
+/*     $NetBSD: infinity.c,v 1.6 1999/04/17 14:53:32 ragge Exp $       */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: infinity.c,v 1.5 1998/11/14 19:31:02 christos Exp $");
+__RCSID("$NetBSD: infinity.c,v 1.6 1999/04/17 14:53:32 ragge Exp $");
 #endif /* not lint */
 /*
- * XXX - THIS IS (probably) COMPLETELY WRONG ON VAX!!!
+ * XXX - This is not correct, but what can we do about it???
  */
 
 /* infinity.c */
 
 #include <math.h>
 
-/* bytes for +Infinity on a 387 */
-const char __infinity[] = { 0, 0, 0, 0, 0, 0, (char)0xf0, 0x7f };
+/* The highest D float on a vax. */
+const char __infinity[] = { (char)0xff, (char)0x7f, (char)0xff, (char)0xff,
+       (char)0xff, (char)0xff, (char)0xff, (char)0xff };



Home | Main Index | Thread Index | Old Index