Skip to content

Commit dfb8239

Browse files
committed
refactor
Change-Id: I08359604fcfc0354345d7aa5e1b18fc3d9ab9e00
1 parent 944b74b commit dfb8239

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/types.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <iomanip>
2222
#include <string.h>
2323
#include <assert.h>
24+
#include <limits>
2425

2526
#ifdef _MSC_VER
2627
#include <windows.h>
@@ -298,11 +299,11 @@ constexpr auto W_MSR_PMON_FIXED_CTR = 0x394;
298299
* Platform QoS MSRs
299300
*/
300301

301-
#define IA32_PQR_ASSOC (0xc8f)
302-
#define IA32_QM_EVTSEL (0xc8d)
303-
#define IA32_QM_CTR (0xc8e)
302+
constexpr auto IA32_PQR_ASSOC = 0xc8f;
303+
constexpr auto IA32_QM_EVTSEL = 0xc8d;
304+
constexpr auto IA32_QM_CTR = 0xc8e;
304305

305-
#define PCM_INVALID_QOS_MONITORING_DATA ((std::numeric_limits<uint64>::max)())
306+
constexpr auto PCM_INVALID_QOS_MONITORING_DATA = (std::numeric_limits<uint64>::max)();
306307

307308
/* \brief Event Select Register format
308309

0 commit comments

Comments
 (0)