Skip to content

Relax compile-time assertion in gammafunction to runtime#3309

Merged
ibuclaw merged 1 commit intodlang:masterfrom
ibuclaw:fix_pr3020
Jun 30, 2015
Merged

Relax compile-time assertion in gammafunction to runtime#3309
ibuclaw merged 1 commit intodlang:masterfrom
ibuclaw:fix_pr3020

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 23, 2015

Should fix builds on non-x86 targets, where the pretty lame yl2x intrinsic is not available at compile-time.

@9il
Copy link
Member

9il commented May 23, 2015

Please add this description to the code.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 23, 2015

Shouldn't be needed as I'm going to propose yanking out uses of yl2x.

@yebblies
Copy link
Contributor

This isn't really a fix.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 26, 2015

This isn't really a fix.

And breaking phobos builds is not a solution.

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 7, 2015

Ping, Phobos is still broken.

@9il
Copy link
Member

9il commented Jun 7, 2015

Please, add //FIXME with description.

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 7, 2015

Please give me a description to fill in, because I don't think I can hold myself back from writing something detrimental about dmd.

@9il
Copy link
Member

9il commented Jun 7, 2015

=)

    // FIXME: should be returned back to enum.
    // Fix requires CTFEable `log` on non-x86 targets (check both LDC and GDC).
    immutable maxY = logmdigamma(real.min_normal);

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 7, 2015

Though FYI, you should probably go the way of std.math and use pre-computed manifests. One for each kind of real float format. We should either find a way to expose floatTraits to this module, or declare it public (and document it).

@9il
Copy link
Member

9il commented Jun 7, 2015

See #3011.

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 25, 2015

@9il ping
@MartinNowak - this one is for 2.068 beta2

@9il
Copy link
Member

9il commented Jun 25, 2015

LGTM

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 29, 2015

I'll merge this in 24 hours unless someone responds in the meantime (as @9il has given his approving 👍 and it's his code I'm changing)

@ibuclaw
Copy link
Member Author

ibuclaw commented Jun 30, 2015

Auto-merge toggled on

ibuclaw added a commit that referenced this pull request Jun 30, 2015
Relax compile-time assertion in gammafunction to runtime
@ibuclaw ibuclaw merged commit c3b05ed into dlang:master Jun 30, 2015
@ibuclaw ibuclaw deleted the fix_pr3020 branch July 21, 2015 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants