Skip to content

Added function bitCount#8708

Merged
alexey-milovidov merged 4 commits intomasterfrom
bitCount
Jan 18, 2020
Merged

Added function bitCount#8708
alexey-milovidov merged 4 commits intomasterfrom
bitCount

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • New Feature

Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Added function bitCount. This fixes #8702.

};

struct NameBitCount { static constexpr auto name = "bitCount"; };
using FunctionBitCount = FunctionUnaryArithmetic<BitCountImpl, NameBitCount, true>;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

bitCount is not injective function. Is the last template argument set to true intentionally?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch! It's a mistake.

@alexey-milovidov alexey-milovidov merged commit 3fe83a1 into master Jan 18, 2020
@alesapin alesapin added the pr-feature Pull request with new product feature label Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add bitCount function

3 participants