Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Remove uses of NCEG operators - #666

Merged
MartinNowak merged 1 commit into
dlang:masterfrom
yebblies:nceg
Nov 22, 2013
Merged

MartinNowak merged 1 commit into
dlang:masterfrom
yebblies:nceg

Conversation

@yebblies

Copy link
Copy Markdown
Contributor

... because they're planned for deprecation

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this instead?

if (d1 != d1) // isNaN
    return d2 != d2 ? 0 : -1;
else if (d2 != d2)
    return 1;
else
    return d1 == d2 ? 0 : d1 < d2 ? -1 : 1;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the same thing? I went with the most straightforward translation possible, and now looking at it i have no idea if it's right.

MartinNowak added a commit that referenced this pull request Nov 22, 2013
Remove uses of NCEG operators
@MartinNowak
MartinNowak merged commit f79eea6 into dlang:master Nov 22, 2013
@yebblies
yebblies deleted the nceg branch November 22, 2013 08:02
dnadlinger added a commit to ldc-developers/druntime that referenced this pull request Jul 5, 2014
smolt added a commit to smolt/druntime that referenced this pull request Feb 28, 2015
Fiber unittest failure on multiple threads is a known LDC Issue dlang#666.
Resolve in core.thread for now by using pthread_setspecific instead of D
TLS for sm_this variables.  Still need version WIP_FiberIssue set to
enable the workaround.  Only needed during -O1 or higher builds.
smolt added a commit to smolt/druntime that referenced this pull request Jul 18, 2015
OSX suffers from issue ldc-developers/ldc#666 too.  Apply same
workaround so thread runShared unittest can pass.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants