From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: gcc optimisation breaks guile floating point Date: Fri, 13 Sep 2002 23:20:13 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <15746.22157.355563.703259@blauw.xs4all.nl> References: <200208272110.OAA20247@onyx.he.net> <15723.64888.759743.439428@blauw.xs4all.nl> <8765xuzq57.fsf@zagadka.ping.de> <15725.21637.516981.623205@blauw.xs4all.nl> <200208301751.KAA21818@onyx.he.net> <15735.51280.569410.22724@blauw.xs4all.nl> Reply-To: hanwen@cs.uu.nl NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031951825 29069 127.0.0.1 (13 Sep 2002 21:17:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2002 21:17:05 +0000 (UTC) Cc: Gary Houston , mvo@zagadka.ping.de, guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pxoE-0007Yc-00 for ; Fri, 13 Sep 2002 23:17:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pxoP-0007QT-00; Fri, 13 Sep 2002 17:17:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17pxny-0007Ku-00 for guile-devel@gnu.org; Fri, 13 Sep 2002 17:16:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17pxnw-0007Ki-00 for guile-devel@gnu.org; Fri, 13 Sep 2002 17:16:45 -0400 Original-Received: from smtpzilla1.xs4all.nl ([194.109.127.137]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pxnw-0007Ke-00 for guile-devel@gnu.org; Fri, 13 Sep 2002 17:16:44 -0400 Original-Received: from blauw.xs4all.nl (blauw.xs4all.nl [213.84.26.127]) by smtpzilla1.xs4all.nl (8.12.0/8.12.0) with ESMTP id g8DLGdpW094188; Fri, 13 Sep 2002 23:16:39 +0200 (CEST) Original-To: cwitty@newtonlabs.com (Carl R. Witty) In-Reply-To: X-Mailer: VM 7.05 under Emacs 21.2.1 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1339 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1339 cwitty@newtonlabs.com writes: > I'm unfamiliar with the exact definition of ANSI C, but I wonder if > something like this might be correct: > > typedef union { > long l; > double d; > } long_or_double; > > ... > *((long_or_double *)z).l = 0; > *((long_or_double *)z).d = x; Yes, but it doesn't jibe with the prototype of scm_double_cell(), which is SCM scm_double_cell(SCM,SCM,SCM,SCM); -- Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel