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

Use union in AArch64_AM_isSVEMaskOfIdenticalElements type punning fix #2238

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

kazarmy
Copy link
Contributor

@kazarmy kazarmy commented Jan 9, 2024

This minor edit improves on #2237 by using union instead of memcpy thus dropping the dependence on memcpy and string.h. It also appears faster. It has been tested by the Rizin CI in rizinorg/rizin#4086.

Apparently it's possible for the translator to use this form instead of the form in #2237.

@XVilka
Copy link
Contributor

XVilka commented Jan 11, 2024

@Rot127 what do you think?

Copy link
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

Way better.

@XVilka
Copy link
Contributor

XVilka commented Jan 12, 2024

@kabeor could you please merge this one too?

@kabeor
Copy link
Member

kabeor commented Jan 13, 2024

Thanks!

@kabeor kabeor merged commit f6ab2ab into capstone-engine:next Jan 13, 2024
11 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.

4 participants