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

[Compiler Add] add pop count #1154

Merged
merged 2 commits into from
Aug 25, 2024
Merged

[Compiler Add] add pop count #1154

merged 2 commits into from
Aug 25, 2024

Conversation

Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Aug 24, 2024

This pr adds nemuric method PopCount.

var endMask = new JumpTarget();
methodConvert.Jump(OpCode.JMP, endMask);

// If larger than int, throw exception, cause too many check will make the script too long.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

out scirpt size is limited, can not put too many checking logic here, thus only deal 32 bits value.

@Jim8y Jim8y merged commit 2c91d64 into neo-project:master Aug 25, 2024
4 checks passed
@Jim8y Jim8y deleted the add-popcount branch August 25, 2024 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants