Skip to content

x86/microcode: spell out the extended table size grouping - #122

Merged
FengHeting merged 3 commits into
ViudiraTech:developfrom
FengHeting:fix/microcode-parentheses
Nov 2, 2026
Merged

FengHeting merged 3 commits into
ViudiraTech:developfrom
FengHeting:fix/microcode-parentheses

Conversation

@FengHeting

Copy link
Copy Markdown
Contributor

Summary

The extended signature table size is the signature records plus the fixed header. Make that grouping explicit in ((size_t)et->count * INTEL_MC_EXT_SIG_SIZE) + INTEL_MC_EXT_HEADER_SIZE instead of relying on operator precedence.

No functional change; silences clang-tidy readability-math-missing-parentheses.

Testing

Default configuration builds.

The extended signature table is the signature records plus the fixed
header; make that grouping explicit in the size expression instead of
relying on operator precedence.

Signed-off-by: MicroFish <2609948707@qq.com>
@FengHeting FengHeting changed the title x86/microcode: spell out the extended table x86/microcode: spell out the extended table size grouping Nov 2, 2026
@FengHeting
FengHeting merged commit 48c266a into ViudiraTech:develop Nov 2, 2026
2 checks passed
@FengHeting
FengHeting deleted the fix/microcode-parentheses branch November 2, 2026 20:59
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.

1 participant