Skip to content

Conversation

frederick-vs-ja
Copy link

@frederick-vs-ja frederick-vs-ja commented Aug 14, 2024

The __popcnt64 intrinsic isn't supported on 32-bit Windows, so __popcnt should be used instead.

See also https://learn.microsoft.com/en-us/cpp/intrinsics/popcnt16-popcnt-popcnt64?view=msvc-170.


IMO, ideally we should use stdc_count_ones (see here and WG14 N3220). But it will take a long long while until C23 will become popular enough.

@frederick-vs-ja

This comment was marked as outdated.

@frederick-vs-ja frederick-vs-ja force-pushed the msvc-win32-popcnt branch 2 times, most recently from 6b8e567 to ebb6e97 Compare October 15, 2024 05:35
@frederick-vs-ja

This comment was marked as outdated.

@frederick-vs-ja frederick-vs-ja force-pushed the msvc-win32-popcnt branch 2 times, most recently from 74e58fc to 48dbdb4 Compare January 23, 2025 03:10
The `__popcnt64` intrinsic isn't supported on 32-bit Windows, so `__popcnt` should be used instead.
@frederick-vs-ja

This comment was marked as outdated.

1 similar comment
@frederick-vs-ja
Copy link
Author

Gently ping @asg017

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.

1 participant