-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable actions for main branch #182
Conversation
2784b49
to
2143604
Compare
72fba11
to
ab8ca17
Compare
src/jit/IntMath32Inl.h
Outdated
@@ -16,6 +16,11 @@ | |||
|
|||
/* Only included by jit-backend.cc */ | |||
|
|||
#if defined(COMPILER_MSVC) | |||
#include <intrin.h> | |||
#define __builtin_popcount __popcnt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could use popCount
in util/BitOperation.h
. This should improve future maintainability.
The header could be included in Backend.cpp
so it would be available everywhere.
Signed-off-by: HyukWoo Park <[email protected]>
Signed-off-by: HyukWoo Park <[email protected]>
return __builtin_popcount(arg); | ||
return popCount((unsigned)arg); | ||
} | ||
|
||
static sljit_sw popcnt64(sljit_sw arg) | ||
{ | ||
return __builtin_popcountl(arg); | ||
return popCount((unsigned long)arg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zherczeg I have updated using popCount
as you commented.
Please review this :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.