From owner-p4-projects@FreeBSD.ORG Mon Mar 10 16:59:20 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 259791065672; Mon, 10 Mar 2008 16:59:20 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8DE81065671 for ; Mon, 10 Mar 2008 16:59:19 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D52698FC16 for ; Mon, 10 Mar 2008 16:59:19 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2AGxJYZ019482 for ; Mon, 10 Mar 2008 16:59:19 GMT (envelope-from rrs@cisco.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2AGxJj7019480 for perforce@freebsd.org; Mon, 10 Mar 2008 16:59:19 GMT (envelope-from rrs@cisco.com) Date: Mon, 10 Mar 2008 16:59:19 GMT Message-Id: <200803101659.m2AGxJj7019480@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rrs@cisco.com using -f From: "Randall R. Stewart" To: Perforce Change Reviews Cc: Subject: PERFORCE change 137330 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 16:59:20 -0000 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 -#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