#define __pure
Declare a function as pure - i.e.
void *__pure memchr(const void *src, int character, size_t len) __nonnull
Find character within a memory region.
int __pure memcmp(const void *first, const void *second, size_t len) __nonnull
Compare memory regions.
char *__malloc strndup(const char *src, size_t max) __nonnull
Duplicate string.
char *__pure strchr(const char *src, int character) __nonnull
Find character within a string.
int __pure strcmp(const char *first, const char *second) __nonnull
Compare strings.
static const void size_t len
uint32_t first
First block in range.
size_t __pure strlen(const char *src) __nonnull
Get length of string.
void * generic_memcpy_reverse(void *dest, const void *src, size_t len) __nonnull
Copy memory region (backwards)
char * strncpy(char *dest, const char *src, size_t max) __nonnull
Copy string.
char * strcat(char *dest, const char *src) __nonnull
Concatenate string.
int __pure strncmp(const char *first, const char *second, size_t max) __nonnull
Compare strings.
char * strcpy(char *dest, const char *src) __nonnull
Copy string.
char * stpcpy(char *dest, const char *src) __nonnull
Copy string.
#define __nonnull
Declare a function's pointer parameters as non-null - i.e.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
char *__pure strstr(const char *haystack, const char *needle) __nonnull
Find substring.
void * generic_memset(void *dest, int character, size_t len) __nonnull
Fill memory region.
int errno
Global "last error" number.
char *__pure strerror(int errno)
Retrieve string representation of error number.
void * generic_memcpy(void *dest, const void *src, size_t len) __nonnull
Copy memory region (forwards)
char * strsep(char **string, const char *delim) __nonnull
strsep - Split a string into tokens @s: The string to be searched @ct: The characters to search for
void * generic_memmove(void *dest, const void *src, size_t len) __nonnull
Copy (possibly overlapping) memory region.
void * memmove(void *dest, const void *src, size_t len) __nonnull
char *__malloc strdup(const char *src) __nonnull
Duplicate string.
#define __malloc
Declare a pointer returned by a function as a unique memory address as returned by malloc-type functi...
size_t __pure strnlen(const char *src, size_t max) __nonnull
Get length of string.
if(len >=6 *4) __asm__ __volatile__("movsl" if(len >=5 *4) __asm__ __volatile__("movsl" if(len >=4 *4) __asm__ __volatile__("movsl" if(len >=3 *4) __asm__ __volatile__("movsl" if(len >=2 *4) __asm__ __volatile__("movsl" if(len >=1 *4) __asm__ __volatile__("movsl" if((len % 4) >=2) __asm__ __volatile__("movsw" if((len % 2) >=1) __asm__ __volatile__("movsb" return dest
Optimised string operations.
void * memswap(void *dest, void *src, size_t len) __nonnull
Swap memory regions.
char *__pure strpbrk(const char *string, const char *delim) __nonnull
strpbrk - Find the first occurrence of a set of characters @cs: The string to be searched @ct: The ch...
char *__pure strrchr(const char *src, int character) __nonnull
Find rightmost character within a string.
static __always_inline int off_t userptr_t second
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void * memset(void *dest, int character, size_t len) __nonnull