Directed rounding

C. Scott Ananian ecmascript at cscott.net
Wed Aug 26 15:22:31 UTC 2015


`fesetround` would be a terrible way for JavaScript to implement this, as
it would allow a piece of code to affect the behavior of completely
unrelated pieces of code by screwing with global rounding mode bits.
That's not going to happen.

I believe there have been proposals to allow greater access to IEEE
floating point intrinsics, and I suspect they were better engineered for
modularity.  Perhaps one of the other readers of this list remembers enough
details to give you a good citation.
  --scott


On Wed, Aug 26, 2015 at 9:00 AM, Martin von Gagern <gagern at ma.tum.de> wrote:

> Hello!
>
> Would you consider providing intrinsic functions for directed rounding,
> to encapsulate the corresponding features of IEE 754 floating point
> computations (resp. the fesetround function of C99)? That would be
> useful for mathematical applications, in particular when implementing
> interval arithmetic for exact predicates.
>
> I wrote about this before, on June 20, but probably that post was way
> too verbose, since I didn't receive any reaction at all. So I'll keep
> the initial post short this time.
>
> Thanks for any comment,
>  Martin von Gagern
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150826/30299796/attachment.html>


More information about the es-discuss mailing list