Skip to content

Commit

Permalink
Merge branch 'koscrob-fix-extractBit' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Feb 11, 2024
2 parents 49c8326 + 08fe5c8 commit 88b0ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbyak/xbyak_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Cpu {
}
uint32_t extractBit(uint32_t val, uint32_t base, uint32_t end)
{
return (val >> base) & ((1u << (end - base)) - 1);
return (val >> base) & ((1u << (end + 1 - base)) - 1);
}
void setNumCores()
{
Expand Down

0 comments on commit 88b0ca1

Please sign in to comment.