Skip to content

ispow2: change parameter to uint64_t#7522

Merged
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:ispow2
Dec 27, 2017
Merged

ispow2: change parameter to uint64_t#7522
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:ispow2

Conversation

@WalterBright
Copy link
Member

No description provided.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

@WalterBright
Copy link
Member Author

Of course, this doesn't work because the bootstrap dmd uses the old scheme. Sigh.

@WalterBright
Copy link
Member Author

Worked around by having a separate ispow2 on the D side.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

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

I assume we can get rid of this duplication with the "D-ification" of the backend soon.

* If c is a power of 2, return that power else -1.
*/

private int ispow2(uint c)
Copy link
Contributor

Choose a reason for hiding this comment

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

D shouldn't be about duplicating code :(

Copy link
Member Author

Choose a reason for hiding this comment

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

There's a lot of hackish code that the conversion to D will eliminate.

@dlang-bot dlang-bot merged commit 0561d52 into dlang:master Dec 27, 2017
@WalterBright WalterBright deleted the ispow2 branch December 28, 2017 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants