blob: 4d5fb4acb6b08310b8404fce34b2a84aea485982 [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
Ed Tanousa3b7f8a2024-11-04 16:38:59 -08004#include "BaseTypes.h"
Lawrence Tangaacf0e22022-07-20 13:28:52 +01005
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