Disappointing math performance compared to GDC

Gabor Mezo via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Oct 8 09:27:33 PDT 2014


Here are the abs/min/max functions:

float nfAbs(float num) nothrow
{
     return num < 0.0f ? -num : num;
}

float nfMax(float num1, float num2) nothrow
{
     return num1 < num2 ? num2 : num1;
}

float nfMin(float num1, float num2) nothrow
{
     return num2 < num1 ? num2 : num1;
}

Didn't inlined too. Why?



More information about the digitalmars-d-ldc mailing list