Browse thread
bug in floating point implementation ?
-
Shyjan Mahamud
-
Xavier Leroy
- mahamud@c...
- Stefan Monnier
-
Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Stefan Monnier <monnier+lists/caml/news/@t...> |
| Subject: | Re: bug in floating point implementation ? |
>>>>> "Xavier" == Xavier Leroy <Xavier.Leroy@inria.fr> writes: > The Intel x86 has an interesting quirk: it computes internally in > extended precision (80 bits), and rounds to double precision (64 bits) > only when storing a result in memory. This means that in a piece of But you can make it work in 64bit-mode (or 32bit-mode for that matter) at which point the discrepencies between true-real 64bit and x86-64bit become very small (mostly due to the exponent still allowing a wider range). Of course, there might be good reasons for not using this mode-switch. Stefan