* Broken `cexp ()' replacement
@ 2007-04-17 13:47 Ludovic Courtès
2007-05-15 0:26 ` Kevin Ryde
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2007-04-17 13:47 UTC (permalink / raw)
To: Guile-Devel
Hi,
Han-Wen: The replacement `cexp ()' you added recently in `numbers.c'
seems to be somehow broken. Here, on a system where `HAVE_CEXP' was
undefined (I had forgotten to re-run `configure', etc.), it led to the
failure of the 4 tests around `numbers.test':249.
I don't know how to fix it, though, so help would be appreciated.
Thanks,
Ludovic.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Broken `cexp ()' replacement
2007-04-17 13:47 Broken `cexp ()' replacement Ludovic Courtès
@ 2007-05-15 0:26 ` Kevin Ryde
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2007-05-15 0:26 UTC (permalink / raw)
To: Guile-Devel; +Cc: Han-Wen Nienhuys
ludovic.courtes@laas.fr (Ludovic Courtès) writes:
>
> replacement `cexp ()'
I think I have to put my hand up for some of the blame there. I added
those uses of cexp and friends, but made the rash assumption that if
"complex double" exists then the functions do.
My intention (never acted on) was to simply further restrict the use of
those funcs. Eg. in scm_exp test HAVE_CEXP as well as
HAVE_COMPLEX_DOUBLE. (Or arrange for configure not to even attempt
HAVE_CEXP unless have complex double, then make it the single test
HAVE_CEXP.)
There's got to be fallback code for when complex double doesn't exist at
all, so may as well use that when the necessary func isn't there,
instead of writing replacement cexp() etc (such replacements basically
duplicating the double-only code).
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-15 0:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17 13:47 Broken `cexp ()' replacement Ludovic Courtès
2007-05-15 0:26 ` Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).