blob: 6cdccb648c9feb7f8cfdb35f33531d013bce1591 [file] [log] [blame]
Lawrence Tangaacf0e22022-07-20 13:28:52 +01001#ifndef CPER_LIB_COMMON_UTILS_H
2#define CPER_LIB_COMMON_UTILS_H
3
4#include "edk/BaseTypes.h"
5
6int bcd_to_int(UINT8 bcd);
7UINT8 int_to_bcd(int value);
8
Ed Tanous2d17ace2024-08-27 14:45:38 -07009#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 Chungf8fc7052024-05-03 20:05:29 +080019#endif