We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 944b74b commit dfb8239Copy full SHA for dfb8239
src/types.h
@@ -21,6 +21,7 @@
21
#include <iomanip>
22
#include <string.h>
23
#include <assert.h>
24
+#include <limits>
25
26
#ifdef _MSC_VER
27
#include <windows.h>
@@ -298,11 +299,11 @@ constexpr auto W_MSR_PMON_FIXED_CTR = 0x394;
298
299
* Platform QoS MSRs
300
*/
301
-#define IA32_PQR_ASSOC (0xc8f)
302
-#define IA32_QM_EVTSEL (0xc8d)
303
-#define IA32_QM_CTR (0xc8e)
+constexpr auto IA32_PQR_ASSOC = 0xc8f;
+constexpr auto IA32_QM_EVTSEL = 0xc8d;
304
+constexpr auto IA32_QM_CTR = 0xc8e;
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)();
307
308
/* \brief Event Select Register format
309
0 commit comments