mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV:- Refine strtol() & strtoul()
- replace 'strtol()' with 'strtol_deci()' -- supports string with decimal format - replace 'strtoul()' with 'strtoul_hex()' -- support string with hex format Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -41,8 +41,8 @@ void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen);
|
||||
int udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res);
|
||||
int udiv32(uint32_t dividend, uint32_t divisor, struct udiv_result *res);
|
||||
int atoi(const char *str);
|
||||
long strtol(const char *nptr, char **endptr, int base);
|
||||
uint64_t strtoul(const char *nptr, char **endptr, int base);
|
||||
long strtol_deci(const char *nptr);
|
||||
uint64_t strtoul_hex(const char *nptr);
|
||||
|
||||
extern uint64_t tsc_hz;
|
||||
#define US_TO_TICKS(x) ((x) * tsc_hz / 1000000UL)
|
||||
|
Reference in New Issue
Block a user