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

aco_amd64_inline_short_aligned_memcpy_test_ok size alignment #58

Closed
the-die opened this issue Oct 17, 2023 · 0 comments
Closed

aco_amd64_inline_short_aligned_memcpy_test_ok size alignment #58

the-die opened this issue Oct 17, 2023 · 0 comments

Comments

@the-die
Copy link

the-die commented Oct 17, 2023

#define aco_amd64_inline_short_aligned_memcpy_test_ok(dst, src, sz) \
    (   \
        (((uintptr_t)(src) & 0x0f) == 0) && (((uintptr_t)(dst) & 0x0f) == 0) \
        &&  \
        (((sz) & 0x0f) == 0x08) && (((sz) >> 4) >= 0) && (((sz) >> 4) <= 8) \
    )

I think it should be (((sz) & 0x0f) == 0) instead of (((sz) & 0x0f) == 0x08).

@the-die the-die closed this as completed Oct 17, 2023
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

No branches or pull requests

1 participant