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

kernel: dce event code cleanup #2423

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

kernel: dce event code cleanup #2423

wants to merge 4 commits into from

Conversation

polybiusproxy
Copy link
Collaborator

General cleanup of the code introduced by #2330 and #2416 to (mostly) get rid of the manual bit arithmetic.


const auto hint_h = static_cast<u32>(hint >> 8) & 0xffffff;
const auto ident_h = static_cast<u32>(event.ident << 8);
if (dce_hint.event_id == event.ident && event.ident != 0xfe &&
Copy link
Contributor

@red-prig red-prig Feb 14, 2025

Choose a reason for hiding this comment

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

It's not quite correctly interpreted, it should be more like this:

if (dce_hint.event_id == ((event.ident >> 48) 0xffff) && ((event.ident >> 48) 0xffff) != 0xfe &&

Copy link
Contributor

Choose a reason for hiding this comment

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

oops

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