[racket] Am I Missing Something? [HtDP 31.3.1]

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Jan 4 17:13:14 EST 2011

At Tue, 4 Jan 2011 14:39:39 -0700, Matthew Flatt wrote:
> Racket sets the x87 control word to use double precision instead of
> extended precision. That setting apparently interferes with the pow()
> C library function.

The following page suggests that the problem is relatively specific to pow():

 http://www.vinc17.org/research/extended.en.html

(That page is cited in a context similar to ours at
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16122)

For now, anyway, I don't have a better solution than resetting the FP
mode back to extended precision before calling pow() under Linux.



Posted on the users mailing list.