[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc optimisation breaks guile floating point
From: |
Han-Wen Nienhuys |
Subject: |
Re: gcc optimisation breaks guile floating point |
Date: |
Fri, 13 Sep 2002 23:20:13 +0200 |
address@hidden 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 | address@hidden | http://www.cs.uu.nl/~hanwen