std.math performance (SSE vs. real)

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 28 18:32:37 PDT 2014


On 6/28/2014 6:14 PM, Timon Gehr wrote:
> On 06/29/2014 02:40 AM, Walter Bright wrote:
>> On 6/28/2014 3:33 AM, Russel Winder via Digitalmars-d wrote:
>>> ...
>>> So D should perhaps make a breaking change and have types int32, int64,
>>> float32, float64, float80, and get away from the vagaries of bizarre
>>> type relationships with hardware?
>>
>> D's spec says that the 'real' type is the max size supported by the FP
>> hardware. How is this wrong?
>>
>
> It is hardware-dependent.

D does not require real to be 80 bits if the hardware does not support it.

Keep in mind that D is a systems programming language, and that implies you get 
access to the hardware types.


More information about the Digitalmars-d mailing list