Tracerestrict: Update comment for TraceRestrictItem enum

This commit is contained in:
Jonathan G Rennison
2024-01-19 20:43:56 +00:00
parent 52d4a11dd3
commit 2d56c4d2e3

View File

@@ -115,10 +115,14 @@ enum TraceRestrictItemFlagAllocation {
}; };
/** /**
* Enumeration of TraceRestrictItem type field * Enumeration of TraceRestrictItem type field.
* This is split into two halves: * This has a width of 6 bits (0 - 63).
* * non-conditionals < TRIT_COND_BEGIN * This is split into three sections:
* * conditionals, >= TRIT_COND_BEGIN * * non-conditionals: 0 <= type < TRIT_COND_BEGIN
* * conditionals: TRIT_COND_BEGIN <= type < TRIT_COND_END
* * non-conditionals: TRIT_COND_END <= type < max (63)
*
* This was previously 5 bits (0 - 31), which is why it's in three sections, not two.
*/ */
enum TraceRestrictItemType { enum TraceRestrictItemType {
TRIT_NULL = 0, ///< Null-type, not in programs and not valid for execution, mainly used with TraceRestrictNullTypeSpecialValue for start/end TRIT_NULL = 0, ///< Null-type, not in programs and not valid for execution, mainly used with TraceRestrictNullTypeSpecialValue for start/end