std.math performance (SSE vs. real)

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 29 12:28:41 PDT 2014


On Sunday, 29 June 2014 at 19:18:49 UTC, Walter Bright wrote:
> On 6/29/2014 11:13 AM, Russel Winder via Digitalmars-d wrote:
>> Very definitely so. Fixed point or integer arithmetic for 
>> simple
>> "household" finance fair enough, but for "finance house" 
>> calculations
>> you generally need 22+ significant denary digits to meet with 
>> compliance
>> requirements.
>
> Doubles are only good to 17 digits, and even that 17th digit is 
> flaky.

The 11 extra bits in an x87 real wouldn't get you to 22 either, 
though. ;)

David


More information about the Digitalmars-d mailing list