diff options
author | Safonov, Igor <[email protected]> | 2020-08-20 17:17:26 -0700 |
---|---|---|
committer | Safonov, Igor <[email protected]> | 2020-08-20 17:17:26 -0700 |
commit | ea73267fb451c8a15d4b68758b69611c8824ea32 (patch) | |
tree | 580de3631b3a8720d0245d081a2a6e13f51cd37b | |
parent | ff0b10e90ad08ffaf9116b7e12ab12e163b13ca5 (diff) | |
download | xbyak-ea73267fb451c8a15d4b68758b69611c8824ea32.tar.gz xbyak-ea73267fb451c8a15d4b68758b69611c8824ea32.zip |
Cpu: make getNumCores constant
-rw-r--r-- | xbyak/xbyak_util.h | 2 |
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]; |