std.math performance (SSE vs. real)

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 4 08:13:34 PDT 2014


On 4 July 2014 14:01, Daniel Murphy via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> "Iain Buclaw via Digitalmars-d" <digitalmars-d at puremagic.com> wrote in
> message news:mailman.3265.1404477916.2907.digitalmars-d at puremagic.com...
>
>
>> FP types are fixed.  float is 32bit, double 64bit.
>
>
> That's 2/3.
>
>
>> What 's the mangling problem with long double? There's only *one* long
>> double.
>
>'
> long double may not be the same size as D's real, eg in msvc it's 64-bit.
> You can still still call these functions from D using double in C, but the
> mangling will not match in C++.
>

You're confusing long double with size_t.  I did a cursory look up
msvc++ mangling, and long double is always 'O'.  The itanium spec says
that long double is 'e' - unless 128bits in which case it is 'g'.

Iain.


More information about the Digitalmars-d mailing list