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:
Shiqing Gao
2018-12-20 11:08:27 +08:00
committed by wenlingz
parent 32d6aa97f9
commit 714814f97e
3 changed files with 102 additions and 94 deletions

View File

@@ -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);