Lawrence Tang | aacf0e2 | 2022-07-20 13:28:52 +0100 | [diff] [blame] | 1 | #ifndef CPER_LIB_COMMON_UTILS_H |
| 2 | #define CPER_LIB_COMMON_UTILS_H |
| 3 | |
| 4 | #include "edk/BaseTypes.h" |
| 5 | |
| 6 | int bcd_to_int(UINT8 bcd); |
| 7 | UINT8 int_to_bcd(int value); |
| 8 | |
Ed Tanous | 2d17ace | 2024-08-27 14:45:38 -0700 | [diff] [blame] | 9 | #if defined __has_attribute |
| 10 | #if __has_attribute(counted_by) |
| 11 | #define LIBCPER_CC_COUNTED_BY(x) __attribute__((counted_by(x))) |
| 12 | #endif |
| 13 | #endif |
| 14 | |
| 15 | #ifndef LIBCPER_CC_COUNTED_BY |
| 16 | #define LIBCPER_CC_COUNTED_BY(x) |
| 17 | #endif |
| 18 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 19 | #endif |