From owner-freebsd-alpha Fri Dec 21 7:18:57 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 5C3ED37B419 for ; Fri, 21 Dec 2001 07:18:53 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id fBLFIoC87160 for freebsd-alpha@freebsd.org; Fri, 21 Dec 2001 16:18:50 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fBLFJ9tx090613 for ; Fri, 21 Dec 2001 16:19:19 +0100 (CET)?g (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [10.1.7.11]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fBLFJ8W22822 for ; Fri, 21 Dec 2001 16:19:08 +0100 (CET) Received: (from ticso@localhost) by cicely9.cicely.de (8.11.6/8.11.6) id fBLFJ7d00238 for freebsd-alpha@freebsd.org; Fri, 21 Dec 2001 16:19:07 +0100 (CET) (envelope-from ticso) Date: Fri, 21 Dec 2001 16:19:07 +0100 From: Bernd Walter To: freebsd-alpha@freebsd.org Subject: floating point exception masks? Message-ID: <20011221151906.GA97006@cicely9.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mozilla uses them on FreeBSD, but they are not available on alpha. Here is a code fragment from work/mozilla/extensions/transformiix/source/base/Double.cpp: #include "primitives.h" #include #ifdef WIN32 #include #endif //A trick to handle IEEE floating point exceptions on FreeBSD - E.D. #ifdef __FreeBSD__ #include #endif #ifndef TX_EXE #include "prdtoa.h" #else #include "stdlib.h" #include "stdio.h" #endif /* * Utility class for doubles */ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D. #ifdef __FreeBSD__ fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML; fp_except_t oldmask = fpsetmask(~allmask); #endif I have no clue about floating point miracles. Are these expected implementations? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message