Re: Interval Arithmetic

2015-10-02 Thread ponce via Digitalmars-d-learn
On Thursday, 1 October 2015 at 21:13:30 UTC, Marco Leise wrote: Nice to have in Phobos. I assume you have to set the correct control word depending on whether you perform math on the FPU or via SSE (as is standard for x86_64)? And I assume further that DMD always uses FPU math and other

Re: Interval Arithmetic

2015-10-01 Thread Marco Leise via Digitalmars-d-learn
Am Tue, 29 Sep 2015 21:04:00 + schrieb Wulfrick <arm.p...@gmail.com>: > Is there an interval arithmetic library in D? I couldn’t find one. > > In case I had to write my own, I understand that the IEEE > standard floating point arithmetic provides operations for >

Re: Interval Arithmetic

2015-10-01 Thread ponce via Digitalmars-d-learn
On Thursday, 1 October 2015 at 11:40:28 UTC, Marco Leise wrote: Note that the FP control word is per thread and any external code you call or even buggy interrupt handlers could change or reset it to defaults. Known cases include a faulty printer driver and Delphi's runtime, which enables FP

Re: Interval Arithmetic

2015-10-01 Thread Marco Leise via Digitalmars-d-learn
Am Thu, 01 Oct 2015 12:03:10 + schrieb ponce : > I have a RAII struct to save/restore the FP control word. > It also handle the SSE control word which unfortunately exist. > > https://github.com/p0nce/dplug/blob/master/plugin/dplug/plugin/fpcontrol.d Nice to have

Re: Interval Arithmetic

2015-09-29 Thread anonymous via Digitalmars-d-learn
On Tuesday, 29 September 2015 at 21:04:06 UTC, Wulfrick wrote: Is there an interval arithmetic library in D? I couldn’t find one. None I am aware of. In case I had to write my own, I understand that the IEEE standard floating point arithmetic provides operations for rounding up or down

Interval Arithmetic

2015-09-29 Thread Wulfrick via Digitalmars-d-learn
Is there an interval arithmetic library in D? I couldn’t find one. In case I had to write my own, I understand that the IEEE standard floating point arithmetic provides operations for rounding up or down certain operations like summing, subtracting, etc. (thus overriding the default behavior