1 #ifndef CPER_LIB_COMMON_UTILS_H 2 #define CPER_LIB_COMMON_UTILS_H 3 4 #include <libcper/BaseTypes.h> 5 6 int bcd_to_int(UINT8 bcd); 7 UINT8 int_to_bcd(int value); 8 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 19 #endif 20