Bug 258557

Summary: __builtin_popcount and __builtin_popcountll are not defined by MSVC
Product: WebKit Reporter: Hayashida Ryuichi <Ryuichi.Hayashida>
Component: JavaScriptCoreAssignee: Hayashida Ryuichi <Ryuichi.Hayashida>
Status: RESOLVED FIXED    
Severity: Normal CC: fujii.hironori, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 222315    

Hayashida Ryuichi
Reported 2023-06-27 03:32:20 PDT
__builtin_popcount and __builtin_popcountll are builtin functions provided by Clang and GCC, but MSVC doesn't provide the same function. Instead, __popcnt and __popcnt64 should be used when building WebKit for Windows. https://learn.microsoft.com/en-us/cpp/intrinsics/popcnt16-popcnt-popcnt64?view=msvc-170
Attachments
Hayashida Ryuichi
Comment 1 2023-06-30 02:32:24 PDT
EWS
Comment 2 2023-06-30 06:49:27 PDT
Committed 265651@main (4e7fe413ab40): <https://commits.webkit.org/265651@main> Reviewed commits have been landed. Closing PR #15439 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-06-30 06:50:17 PDT
Note You need to log in before you can comment on or make changes to this bug.