From fd6615366d74f540f622282bf6628f2e86d4781a Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Sat, 16 Nov 2024 10:46:22 +0100 Subject: [PATCH] Update comment --- src/CpuInfo.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/CpuInfo.cpp b/src/CpuInfo.cpp index 743ff964..a95bc567 100644 --- a/src/CpuInfo.cpp +++ b/src/CpuInfo.cpp @@ -202,10 +202,10 @@ void CpuInfo::init() if (cacheInfo.size() <= cpuCoreId) cacheInfo.resize((cpuCoreId + 1) * 2); - // If the CPU has multiple caches of the same level, then - // we are only interested in the first such cache since - // this is likely the fastest cache. Usually, all caches - // are ordered from fastest to slowest. + // If the CPU core has multiple caches of the same level, + // then we are only interested in the first such cache + // since this is likely the fastest cache. Usually, all + // caches are ordered from fastest to slowest. if (cacheInfo[cpuCoreId].cacheSizes[level] != 0) continue; @@ -300,10 +300,10 @@ void CpuInfo::init() { auto level = info[i].Cache.Level; - // If the CPU has multiple caches of the same level, then - // we are only interested in the first such cache since - // this is likely the fastest cache. Usually, all caches - // are ordered from fastest to slowest. + // If the CPU core has multiple caches of the same level, + // then we are only interested in the first such cache + // since this is likely the fastest cache. Usually, all + // caches are ordered from fastest to slowest. if (cacheSizes_[level] != 0) continue; @@ -712,10 +712,10 @@ void CpuInfo::init() if (level >= 1 && level <= 3) { - // If the CPU has multiple caches of the same level, then - // we are only interested in the first such cache since - // this is likely the fastest cache. Usually, all caches - // are ordered from fastest to slowest. + // If the CPU core has multiple caches of the same level, + // then we are only interested in the first such cache + // since this is likely the fastest cache. Usually, all + // caches are ordered from fastest to slowest. if (cacheSizes_[level] != 0) continue;