Performance problem with floor

David Nadlinger via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Jun 22 14:05:08 PDT 2014


On 22 Jun 2014, at 21:33, Orvid King via digitalmars-d-ldc wrote:
> On 6/22/2014 1:49 PM, bearophile wrote:
>> If someone here has followed this thread, ldc2 has big performance
>> problems with the function "floor":
> Well, unless LDC is doing something somewhere that I can't find, […]

The problem is that we somehow ended up with Iain's pure, multi-bitwidth 
D implementation being the default.

We should make our std.math call llvm.floor.*, or at least the C 
standard library one by default. Anybody wants to cook up a pull request 
for ldc-developers/phobos?

Thanks,
David


More information about the digitalmars-d-ldc mailing list