diff options
Diffstat (limited to 'src/include/usr/errl')
-rw-r--r-- | src/include/usr/errl/hberrltypes.H | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/usr/errl/hberrltypes.H b/src/include/usr/errl/hberrltypes.H index 94e3722a8..e948e4df0 100644 --- a/src/include/usr/errl/hberrltypes.H +++ b/src/include/usr/errl/hberrltypes.H @@ -79,6 +79,11 @@ namespace ERRORLOG { class ErrlEntry; }; ( (TO_UINT64(TWO_UINT16_TO_UINT32(mostleft_16, left_16)) << 32) | \ (TO_UINT64(TWO_UINT16_TO_UINT32(right_16, mostright_16))) ) +// uint32_t val = 8bit:8bit:8bit:8bit +#define FOUR_UINT8_TO_UINT32(mostleft_8, left_8, right_8, mostright_8) \ + ( (TO_UINT32(TWO_UINT8_TO_UINT16(mostleft_8, left_8)) << 16) | \ + (TO_UINT32(TWO_UINT8_TO_UINT16(right_8, mostright_8))) ) + namespace ERRORLOG { |