If cap_user_rdpmc this field provides the bit-width of the value read using the rdpmc() or equivalent instruction. This can be used to sign extend the result like:
pmc <<= 64 - width; pmc >>= 64 - width; // signed shift right count += pmc;
See Implementation
If cap_user_rdpmc this field provides the bit-width of the value read using the rdpmc() or equivalent instruction. This can be used to sign extend the result like:
pmc <<= 64 - width; pmc >>= 64 - width; // signed shift right count += pmc;