aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSafonov, Igor <[email protected]>2020-08-20 17:17:26 -0700
committerSafonov, Igor <[email protected]>2020-08-20 17:17:26 -0700
commitea73267fb451c8a15d4b68758b69611c8824ea32 (patch)
tree580de3631b3a8720d0245d081a2a6e13f51cd37b
parentff0b10e90ad08ffaf9116b7e12ab12e163b13ca5 (diff)
downloadxbyak-ea73267fb451c8a15d4b68758b69611c8824ea32.tar.gz
xbyak-ea73267fb451c8a15d4b68758b69611c8824ea32.zip
Cpu: make getNumCores constant
-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 5caed05..e095173 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -219,7 +219,7 @@ public:
int displayFamily; // family + extFamily
int displayModel; // model + extModel
- unsigned int getNumCores(IntelCpuTopologyLevel level) {
+ unsigned int getNumCores(IntelCpuTopologyLevel level) const {
if (!x2APIC_supported_) XBYAK_THROW_RET(ERR_X2APIC_IS_NOT_SUPPORTED, 0)
switch (level) {
case SmtLevel: return numCores_[level - 1];