Disappointing math performance compared to GDC

Russel Winder via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Oct 8 07:46:41 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/10/14 12:29, Trass3r via digitalmars-d-ldc wrote:
[…]
> * Never ever use std.math as you will get the insane 80-bit
> functions.

What can one use to avoid this, and use the 64-bit numbers.

> * core.math has some hacks to use llvm builtins but also mostly
> using type real. * core.stdc.math supports all types but uses
> suffixes and maps to C functions. * core.stdc.tgmath gets rid of
> the suffixes at least. Best way imo to write code if you disregard
> auto-vectorization. * you can also use ldc.intrinsics to kill
> portability. Hello C++.
> 
> And there's no fast-math yet: 
> https://github.com/ldc-developers/ldc/issues/722

Is there any work to handle the above? Does GDC actually suffer the
same (or analogous) issues?


- -- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip:
sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQ1TlEACgkQ+ooS3F10Be/1BwCeNxSxy86BThgVuhYOawFNHi3A
uboAn0lautCqxvrOHp+mIYlVz7qw2jpV
=7Wy1
-----END PGP SIGNATURE-----


More information about the digitalmars-d-ldc mailing list