Skip to content
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

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Enable actions for main branch #182

merged 2 commits into from
Nov 1, 2023

Conversation

clover2123
Copy link
Collaborator

No description provided.

@@ -16,6 +16,11 @@

/* Only included by jit-backend.cc */

#if defined(COMPILER_MSVC)
#include <intrin.h>
#define __builtin_popcount __popcnt
Copy link
Collaborator

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.

Comment on lines -249 to +254
return __builtin_popcount(arg);
return popCount((unsigned)arg);
}

static sljit_sw popcnt64(sljit_sw arg)
{
return __builtin_popcountl(arg);
return popCount((unsigned long)arg);
Copy link
Collaborator Author

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 :)

@clover2123 clover2123 marked this pull request as ready for review November 1, 2023 07:06
@clover2123 clover2123 requested a review from ksh8281 as a code owner November 1, 2023 07:06
Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@ksh8281 ksh8281 merged commit 88ff1cc into Samsung:main Nov 1, 2023
12 checks passed
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.

3 participants