Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 86) sorted by relevance

1234

/picolibc-3.7.0-3.6.0/newlib/libc/machine/mips/
Dstrncpy.c47 strncpy (char *dst0, const char *src0, size_t count) in strncpy() argument
56 end = dst + count; in strncpy()
90 while (((uintptr_t) src & (UNROLL_FACTOR - 1)) != 0 && count > 0) in strncpy()
93 --count; in strncpy()
96 end = dst + count; in strncpy()
104 if (__builtin_expect (count >= 4, 1)) in strncpy()
106 odd_bytes = (count & (UNROLL_FACTOR - 1)); in strncpy()
107 count -= odd_bytes; in strncpy()
118 count -= UNROLL_FACTOR; in strncpy()
140 while (count); in strncpy()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/
Dmemset.S22 #define count x2 macro
32 add dstend, dstin, count
34 cmp count, 96
36 cmp count, 16
41 tbz count, 3, 1f
46 1: tbz count, 2, 2f
50 2: cbz count, 3f
52 tbz count, 1, 3f
59 tbnz count, 6, L(set96)
61 tbz count, 5, 1f
[all …]
Dmemcpy.S21 #define count x2 macro
40 #define G_l count
64 add srcend, src, count
65 add dstend, dstin, count
66 cmp count, 128
68 cmp count, 32
72 cmp count, 16
82 tbz count, 3, L(copy8)
92 tbz count, 2, L(copy4)
101 cbz count, L(copy0)
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/hppa/
Dmemcpy.S25 #define count arg2 macro
36 comib,>= 5,count,byteloop /* If count is <= 6 don't get fancy.*/
41 add count,tmp2,count /* pre increment the count to adjust for alignment of s1 */
50 addibt,<,n -16,count,chekchunk /* If count < 16 then we can't move 16 byte chunks ! */
62 addibf,< -16,count,chunks /* If count is still >= 16 do another loop. */
66 … addibt,<,n 12,count,back_porch /* since the count is already decremented by -16 we're testing */
70 addibf,< -4,count,subchunk /* count -= 4 */
75 addibt,=,n 4,count,done /* if count = 0 we're, of course, done ! */
77 add d_addr,count,d_addr/* final store address is +1 too high ! */
88 addibt,<,n -16,count,chkchnk2 /* first step in pre adjustment of count for looping. */
[all …]
Dmemcmp.S38 #define count 24 macro
41 combt,<,n r0,count,search /*N <= 0 yields equality */
67 add tmp5,count,count /* bump count by the number of bytes */
84 addibt,<=,n -1,count,done /* have we checked N chars? ret0 == 0 */
89 addibt,<=,n -1,count,done /* have we checked N chars? */
94 addibt,<=,n -1,count,done /* have we checked N chars? */
104 addibt,<=,n -4,count,zero /* have we checked N chars? */
117 add tmp5,count,count /* bump count by the number of bytes */
130 more: combt,<=,n count,tmp1,chunk1 /* Can we do the vshd? */
135 addibt,<=,n -4,count,zero /* have we checked N chars? */
[all …]
Dstrncpy.S28 #define count r24 macro
41 addibt,<,n -4,count,byteloop /* If count is <= 4 don't get fancy.*/
45 …add count,tmp5,count /* pre increment the count by the byte address so that the count is…
63 addibf,< -4,count,chunks
67 addibt,=,n 4,count,done /* if count = 0 we're, of course, done !*/
69 add d_addr,count,d_addr/* final store address is +1 too high !*/
70 sh3add count,r0, save /* setup right mask based on count*/
86 addibt,<,n -4,count,chkchnk2 /* first step in pre adjustment of count for looping.*/
113 addibf,< -8,count,chunk2 /* If count is still >= 8 do another loop.*/
117 … addibt,<,n 4,count,bp_0 /* if we don't have 4 bytes left then do the back porch (bp_0)*/
[all …]
Dstrncat.S23 #define count r24 macro
68 addibt,<,n -4,count,byteloop /* If count is <= 4 don't get fancy.*/
72 …add count,tmp5,count /* pre increment the count by the byte address so that the count is…
86 addibt,< -4,count,back_porch
95 addibf,< -4,count,chunks
99 addibt,=,n 4,count,done /* if count = 0 we're, of course, done !*/
101 sh3add count,r0, save /* setup right mask based on count*/
108 add d_addr,count,d_addr/* final store address is +1 too high !*/
118 addibt,<,n -4,count,chkchnk2 /* first step in pre adjustment of count for looping.*/
152 addibf,< -8,count,chunk2 /* If count is still >= 8 do another loop.*/
[all …]
Dstrncmp.S34 #define count 24 macro
37 combt,<,n r0,count,search /* N <= 0 yields equality */
63 add tmp5,count,count /* bump count by the number of bytes */
82 addibt,<=,n -1,count,done /* have we checked N chars? ret0 == 0 */
89 addibt,<=,n -1,count,done /* have we checked N chars? */
96 addibt,<=,n -1,count,done /* have we checked N chars? */
106 addibt,<=,n -4,count,zero /* have we checked N chars? */
122 add tmp5,count,count /* bump count by the number of bytes */
139 addibt,<=,n -4,count,zero /* have we checked N chars? */
158 add tmp1,count,count /* bump count by the number of bytes */
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrncpy.c83 size_t count) in strncpy() argument
92 while (count > 0) in strncpy()
94 --count; in strncpy()
98 while (count-- > 0) in strncpy()
109 if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) in strncpy()
116 while (count >= sizeof (long int) && !DETECTNULL(*aligned_src)) in strncpy()
118 count -= sizeof (long int); in strncpy()
126 while (count > 0) in strncpy()
128 --count; in strncpy()
133 while (count-- > 0) in strncpy()
Dstpncpy.c70 size_t count) in stpncpy() argument
80 if (!UNALIGNED (src, dst) && !TOO_SMALL (count)) in stpncpy()
87 while (count >= sizeof (long int) && !DETECTNULL(*aligned_src)) in stpncpy()
89 count -= sizeof (long int); in stpncpy()
98 while (count > 0) in stpncpy()
100 --count; in stpncpy()
108 while (count-- > 0) in stpncpy()
Dwcpncpy.c39 size_t count) in wcpncpy() argument
43 while (count > 0) in wcpncpy()
45 --count; in wcpncpy()
52 while (count-- > 0) in wcpncpy()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/headers/
Dilogb.h54 vec_uint4 v, exp, exp_0, mant, mask, count; in _ilogb() local
70 count = spu_cntlz(mant); in _ilogb()
71 count = spu_add(count, spu_and(spu_rlqwbyte(count, 4), spu_cmpeq(count, 32))); in _ilogb()
80 exp_0 = spu_sel(spu_sub(spu_add(exp, 12), count), VEC_SPLAT_U32(FP_ILOGB0), spu_cmpeq(count, 64)); in _ilogb()
/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dstrftime.c345 #define CHECK_LENGTH() if (len < 0 || (count += len) >= maxsize) \
688 size_t count = 0; in __strftime() local
705 if (count < maxsize - 1) in __strftime()
706 s[count++] = *format++; in __strftime()
763 if (count < maxsize - 1) in __strftime()
764 s[count++] = ctloc[i]; in __strftime()
773 if (count < maxsize - 1) in __strftime()
774 s[count++] = ctloc[i]; in __strftime()
784 if (count < maxsize - 1) in __strftime()
785 s[count++] = ctloc[i]; in __strftime()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dgetdelim.c46 _ssize_t count = 0; in getdelim() local
53 if (count >= (_ssize_t) n) { in getdelim()
57 count = -1; in getdelim()
64 line[count++] = c; in getdelim()
66 line[count] = '\0'; in getdelim()
73 return count; in getdelim()
/picolibc-3.7.0-3.6.0/newlib/libc/misc/
Dinit.c32 size_t count; in __libc_init_array() local
35 count = __preinit_array_end - __preinit_array_start; in __libc_init_array()
36 for (i = 0; i < count; i++) in __libc_init_array()
44 count = __init_array_end - __init_array_start; in __libc_init_array()
45 for (i = 0; i < count; i++) in __libc_init_array()
/picolibc-3.7.0-3.6.0/semihost/machine/powerpc/
Dpowerpc_stub.c45 read(int fd, void *buf, size_t count) in read() argument
49 (void) count; in read()
54 write(int fd, const void *buf, size_t count) in write() argument
57 opal_console_write(0, count, buf); in write()
58 return count; in write()
/picolibc-3.7.0-3.6.0/semihost/machine/msp430/
Dmsp430-stub.c45 read(int fd, void *buf, size_t count) in read() argument
49 (void) count; in read()
54 write(int fd, const void *buf, size_t count) in write() argument
57 size_t c = count; in write()
62 return count; in write()
/picolibc-3.7.0-3.6.0/semihost/machine/sparc/
Dsparc_stub.c45 read(int fd, void *buf, size_t count) in read() argument
49 (void) count; in read()
54 write(int fd, const void *buf, size_t count) in write() argument
57 size_t c = count; in write()
62 return count; in write()
/picolibc-3.7.0-3.6.0/semihost/machine/mips/
Dmips_stub.c45 read(int fd, void *buf, size_t count) in read() argument
49 (void) count; in read()
54 write(int fd, const void *buf, size_t count) in write() argument
57 size_t c = count; in write()
62 return count; in write()
/picolibc-3.7.0-3.6.0/semihost/machine/x86/
De9_stub.c44 read(int fd, void *buf, size_t count) in read() argument
48 (void) count; in read()
53 write(int fd, const void *buf, size_t count) in write() argument
56 size_t c = count; in write()
62 return count; in write()
/picolibc-3.7.0-3.6.0/semihost/machine/sh/
Dsh_stub.c45 read(int fd, void *buf, size_t count) in read() argument
49 (void) count; in read()
55 write(int fd, const void *buf, size_t count) in write() argument
58 size_t c = count; in write()
63 return count; in write()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dfread.c44 size_t count; member
54 size_t count, in fread() argument
63 args.count = count; in fread()
Dfwrite.c46 size_t count; member
54 size_t count, in fwrite() argument
63 args.count = count; in fwrite()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dfread.c100 size_t count, in crlf_r() argument
106 if (count == 0) in crlf_r()
109 e = buf + count; in crlf_r()
134 return count - (e-d); in crlf_r()
138 return count; in crlf_r()
148 size_t count, in fread() argument
156 if ((resid = count * size) == 0) in fread()
164 count = 0; in fread()
262 return count; in fread()
/picolibc-3.7.0-3.6.0/newlib/libc/argz/
Dargz_count.c17 size_t count = 0; in argz_count() local
22 count++; in argz_count()
24 return count; in argz_count()

1234