mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
Merge branch 'koscrob-fix-extractBit' into dev
This commit is contained in:
commit
88b0ca1271
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ private:
|
|||
}
|
||||
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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue