Skip to content

Use ZYAN_DIV64 in ZydisStringAppendDecU64 #424

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

Merged
merged 2 commits into from
Mar 5, 2023

Conversation

jpidancet
Copy link
Contributor

Avoid a direct 64bit integer division in ZydisStringAppendDecU64 and use the macro provided by zycore instead, as GCC might generate unwanted calls to arithmetic functions on 32bit platforms.

This is the Zydis counterpart of zyantific/zycore-c#62

Note that this PR needs an update of the dependencies/zycore submodule first.

Thanks.

@flobernd
Copy link
Member

flobernd commented Mar 3, 2023

Thanks for the follow up PR!

Could you please include the submodule update? It's safe to use the latest zycore-c commit (the one containing your previous changes) for now.

We will push a proper version tag to both repositories as soon as we do a new Zydis release 🙂

Avoid a direct 64bit integer division in ZydisStringAppendDecU64 and use
the macro provided by zycore instead, as GCC might generate
unwanted calls to arithmetic functions on 32bit platforms.
@jpidancet
Copy link
Contributor Author

Updated, thanks!

Copy link
Member

@athre0z athre0z left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@athre0z athre0z merged commit 950a896 into zyantific:master Mar 5, 2023
@athre0z athre0z added C-enhancement Category: Enhancement of existing features A-build Area: Build system labels Mar 5, 2023
athre0z pushed a commit that referenced this pull request Feb 4, 2024
* Update zycore submodule

* Use ZYAN_DIV64 in ZydisStringAppendDecU64

Avoid a direct 64bit integer division in ZydisStringAppendDecU64 and use
the macro provided by zycore instead, as GCC might generate
unwanted calls to arithmetic functions on 32bit platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build Area: Build system C-enhancement Category: Enhancement of existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants