aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2024-02-11 10:15:10 +0900
committerMITSUNARI Shigeo <[email protected]>2024-02-11 10:15:10 +0900
commit021e70c97fb183161cb56b540806f2d0a9df590a (patch)
tree328bd2fa14ad42739d32d39e2e9d99e51829db90
parent49c83263a818f0c2e722ba86a75ba3966bd7d128 (diff)
parent88b0ca1271409d1f00282be1227f7c47581b0cb5 (diff)
downloadxbyak-021e70c97fb183161cb56b540806f2d0a9df590a.tar.gz
xbyak-021e70c97fb183161cb56b540806f2d0a9df590a.zip
Merge branch 'dev'
-rw-r--r--xbyak/xbyak_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h
index e90af65..e491cc4 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -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()
{