Loading...
Searching...
No Matches
Go to the documentation of this file.
10#ifndef FDT_LIB_SUPPORT_H_
11#define FDT_LIB_SUPPORT_H_
18typedef UINT16 uint16_t;
20typedef UINT32 uint32_t;
21typedef UINT64 uint64_t;
22typedef UINTN uintptr_t;
32#define INT_MAX 0x7FFFFFFF
33#define INT32_MAX 0x7FFFFFFF
34#define UINT32_MAX 0xFFFFFFFF
87#define memcpy(dest, source, count) CopyMem(dest,source, (UINTN)(count))
88#define memset(dest, ch, count) SetMem(dest, (UINTN)(count),(UINT8)(ch))
89#define memchr(buf, ch, count) ScanMem8(buf, (UINTN)(count),(UINT8)ch)
90#define memcmp(buf1, buf2, count) (int)(CompareMem(buf1, buf2, (UINTN)(count)))
91#define memmove(dest, source, count) CopyMem(dest, source, (UINTN)(count))
92#define strlen(str) (size_t)(AsciiStrLen(str))
93#define strnlen(str, count) (size_t)(AsciiStrnLenS(str, count))
94#define strncpy(strDest, strSource, count) AsciiStrnCpyS(strDest, MAX_STRING_SIZE, strSource, (UINTN)count)
95#define strcat(strDest, strSource) AsciiStrCatS(strDest, MAX_STRING_SIZE, strSource)
96#define strchr(str, ch) ScanMem8(str, AsciiStrSize (str), (UINT8)ch)
97#define strcmp(string1, string2, count) (int)(AsciiStrCmp(string1, string2))
98#define strncmp(string1, string2, count) (int)(AsciiStrnCmp(string1, string2, (UINTN)(count)))
99#define strrchr(str, ch) fdt_strrchr(str, ch)
100#define strtoul(ptr, end_ptr, base) fdt_strtoul(ptr, end_ptr, base)