Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 43) sorted by relevance

12

/picolibc-latest/newlib/libc/string/
Dmemmove.c73 size_t length) in memmove() argument
79 if (src < dst && dst < src + length) in memmove()
82 src += length; in memmove()
83 dst += length; in memmove()
84 while (length--) in memmove()
91 while (length--) in memmove()
104 if (src < dst && dst < src + length) in memmove()
107 src += length; in memmove()
108 dst += length; in memmove()
109 while (length--) in memmove()
[all …]
Dmemrchr.c69 size_t length) in memrchr() argument
71 const unsigned char *src = (const unsigned char *) src_void + length - 1; in memrchr()
82 if (!length--) in memrchr()
89 if (!TOO_SMALL (length)) in memrchr()
105 while (length >= LBLOCKSIZE) in memrchr()
109 length -= LBLOCKSIZE; in memrchr()
121 while (length--) in memrchr()
Dmemchr.c83 size_t length) in memchr() argument
96 if (!length--) in memchr()
103 if (!TOO_SMALL (length)) in memchr()
119 while (length >= LBLOCKSIZE) in memchr()
123 length -= LBLOCKSIZE; in memchr()
135 while (length--) in memchr()
Dswab.c25 ssize_t length) in swab() argument
30 for (ptr = 1; ptr < length; ptr += 2) in swab()
37 if (ptr == length) /* I.e., if length is odd, */ in swab()
Dbzero.c49 bzero(void *b, size_t length) in bzero() argument
51 memset(b, 0, length); in bzero()
Dbcopy.c47 size_t length) in bcopy() argument
49 memmove (b2, b1, length); in bcopy()
Dwcstrings.tex23 * Function wcslcat:: Concatenate wide-character strings to specified length
24 * Function wcslcpy:: Copy wide-character string to specified length
25 * Function wcslen:: Wide-character string length
30 * Function wcsnlen:: Wide-character string length with maximum limit
/picolibc-latest/test/
Dtest-strnlen_s.c104 size_t length; in main() local
112 length = strnlen_s("Hello, world!", 50); in main()
114 TEST_RES(length == 13, "Normal length", handler_res, test_id); in main()
118 length = strnlen_s("Hello, world!", 13); in main()
120 TEST_RES(length == 13, "Length with exact buffer size", handler_res, in main()
125 length = strnlen_s("Hello, world!", 5); in main()
127 TEST_RES(length == 5, "Length with insufficient buffer", handler_res, in main()
132 length = strnlen_s("", 50); in main()
134 TEST_RES(length == 0, "Length of empty string", handler_res, test_id); in main()
138 length = strnlen_s(NULL, 50); in main()
[all …]
Dtest-strerrorlen_s.c104 size_t length; in main() local
112 length = strerrorlen_s(EINVAL); in main()
114 TEST_RES(length == strlen("Invalid argument"), "Normal error code length", in main()
119 length = strerrorlen_s(12345); in main()
121 TEST_RES(length == 0, "Unknown error code length", handler_res, test_id); in main()
Dtls.c235 hexdump(const void *ptr, int length, const char *hdr) in hexdump() argument
239 for (int i = 0; i < length; i += 16) { in hexdump()
243 if (offset < length) in hexdump()
/picolibc-latest/semihost/
Dgetentropy.c42 getentropy(void *buffer, size_t length) in getentropy() argument
46 while (length) { in getentropy()
49 if (this_time > length) in getentropy()
50 this_time = length; in getentropy()
52 length -= this_time; in getentropy()
/picolibc-latest/newlib/libc/machine/spu/
Dstrncpy_ea.c48 size_ea_t length = strlen_ea (src); in strncpy_ea() local
49 if (length < n) in strncpy_ea()
51 memcpy_ea ((__ea void *) dest, (__ea void *) src, length); in strncpy_ea()
52 memset_ea ((__ea void *) (dest + length), 0, n - length); in strncpy_ea()
Dmmap_ea.c42 __ea void *mmap_ea (__ea void *start, size_ea_t length, int prot, int in mmap_ea() argument
46 if (length > 0xffffffffULL) { in mmap_ea()
51 (size_t) length, prot, flags, fd, offset); in mmap_ea()
59 res = mmap_eaddr ((unsigned long long) (unsigned int) start, length, in mmap_ea()
62 munmap_eaddr (res, length); in mmap_ea()
Dcalloc_ea.c43 unsigned long long length; member
50 calloc_ea (size_ea_t nmemb, size_ea_t length) in calloc_ea() argument
55 args.length = (unsigned long long) length; in calloc_ea()
Dstrcpy_ea.c48 size_ea_t length; in strcpy_ea() local
50 length = strlen_ea (src); in strcpy_ea()
51 memcpy_ea ((__ea void *) dest, (__ea void *) src, length + 1); in strcpy_ea()
Dmunmap_ea.c42 munmap_ea (__ea void *start, size_ea_t length) in munmap_ea() argument
44 return munmap_eaddr ((unsigned long long) (size_ea_t) start, length); in munmap_ea()
Dmsync_ea.c42 msync_ea (__ea void *start, size_ea_t length, int flags) in msync_ea() argument
44 return msync_eaddr ((unsigned long long) (size_ea_t) start, length, in msync_ea()
/picolibc-latest/newlib/libc/machine/spu/sys/
Dmman.h77 unsigned long long mmap_eaddr(unsigned long long start, size_t length, int
81 unsigned long long msync_eaddr(unsigned long long start, size_t length,
83 unsigned long long munmap_eaddr(unsigned long long start, size_t length);
/picolibc-latest/newlib/libc/stdio/
Dtmpnam.c174 int length; in tempnam() local
180 length = strlen (dir) + strlen (prefix) + (4 * sizeof (int)) + 2 + 1; in tempnam()
182 filename = malloc (length); in tempnam()
Dnano-vfprintf_float.c51 int flags, char *sign, int *decpt, int ch, int *length,
67 char *sign, int *decpt, int ch, int *length, char *buf) in __cvt() argument
118 *length = rve - digits; in __cvt()
/picolibc-latest/newlib/libc/machine/spu/include/
Dea.h82 __ea void *mmap_ea (__ea void *start, size_ea_t length, int prot, int
84 int munmap_ea (__ea void *start, size_ea_t length);
87 int msync_ea (__ea void *start, size_ea_t length, int flags);
90 __ea void *calloc_ea (size_ea_t nmemb, size_ea_t length);
/picolibc-latest/newlib/libc/machine/rx/
Dstrlen.S31 sub r4, r1 ; Compute the length.
Dstrncmp.S16 cmp #0, r3 ; For a length of zero, return zero
/picolibc-latest/newlib/libc/machine/i960/
Dstrcspn.S91 subo g0,g3,g0 # compute string length
Dstrlen.S114 subo g0,g2,g0 # calculate string length

12