mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 21:59:26 +00:00
hv: move atoi
and strtol_dec
to debug directory
This patch moves `atoi` and `strtol_dec` to debug directory since they are only used by code under debug directory. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -19,6 +19,16 @@ union u_qword {
|
||||
|
||||
};
|
||||
|
||||
/* MACRO related to string */
|
||||
#define ULONG_MAX ((uint64_t)(~0UL)) /* 0xFFFFFFFF */
|
||||
#define LONG_MAX (ULONG_MAX >> 1U) /* 0x7FFFFFFF */
|
||||
#define LONG_MIN (~LONG_MAX) /* 0x80000000 */
|
||||
|
||||
static inline bool is_space(char c)
|
||||
{
|
||||
return ((c == ' ') || (c == '\t'));
|
||||
}
|
||||
|
||||
/* Function prototypes */
|
||||
void udelay(uint32_t us);
|
||||
int32_t strcmp(const char *s1_arg, const char *s2_arg);
|
||||
|
Reference in New Issue
Block a user