Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 66) sorted by relevance

123

/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrndup.c16 char *copy; in strndup() local
23 copy = malloc (len + 1); in strndup()
24 if (copy) in strndup()
26 memcpy (copy, str, len); in strndup()
27 copy[len] = '\0'; in strndup()
29 return copy; in strndup()
Dstrdup.c13 char *copy = malloc (len); in strdup() local
14 if (copy) in strdup()
16 memcpy (copy, str, len); in strdup()
18 return copy; in strdup()
Dwcsdup.c44 wchar_t *copy = malloc (len * sizeof (wchar_t)); in wcsdup() local
45 if (copy) in wcsdup()
46 wmemcpy (copy, str, len); in wcsdup()
47 return copy; in wcsdup()
/picolibc-3.7.0-3.6.0/test/
Dtry-ilp32.c41 char copy[128] = {"hello"}; in main() local
59 strcpy(get_str(copy).base, a); in main()
60 len = strlen(copy); in main()
61 printf("copy %s len %d\n", copy, len); in main()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/hppa/
Dstrncat.S37 copy d_addr,ret0 /* The return value is the value of d_addr. DELAY SLOT*/
73 copy s_addr,tmp6 /* save original s_addr in case we find null in first word */
74 copy s_addr, tmp7 /* save s_addr in case we find null before first store */
132 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/
133 copy r0, tmp7 /* zero out tmp7 so we don't try to use original s_addr anymore */
171 copy r0,tmp5 /* zero out tmp5 so null3 does correct alignment */
172 copy r0,tmp7 /* zero out tmp7 so we don't use orignal s_addr since no longer valid */
177 copy tmp1,tmp2 /* switch registers for shift process */
195 copy tmp6,s_addr /* restore orig s_addr (aligned only) */
213 copy tmp7, s_addr
Dstrncpy.S40copy d_addr,ret0 /* The return value is defined to be the value of d_addr. DELAY SLO…
97 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/
129 copy r0, tmp5 /* zero out tmp5 so we don't try to mask again*/
137 copy tmp1,tmp2 /* switch registers used in the shift process.*/
148 copy r0, tmp5
194 copy r0, tmp5
211 copy r0, tmp5
225 copy r0, tmp5
242 copy r0, tmp5
Dstrncmp.S39 copy 0,ret0 /* return 0 (DELAY SLOT) */
42 copy 0,ret0 /* return 0 (delay slot) */
109 copy 0,28 /* return 0 */
142 copy tmp7,s2word /* */
178 copy tmp7,s1word /* */
187 zero: copy r0,ret0
Dmemcmp.S43 copy 0,ret0 /*return 0 (DELAY SLOT) */
46 copy 0,ret0 /*return 0 (delay slot) */
136 copy tmp7,s2word /**/
172 copy tmp7,s1word /**/
181 zero: copy r0,ret0
Dstrcmp.S97 copy r0,ret0
220 copy tmp7,s1word /* move tmp7 to s1word */
223 copy save,s1word /* delay slot */
270 copy tmp7,s2word /* move tmp7 to s2word */
273 copy save,s2word /* delay slot */
Dmemchr.S34 copy r0,ret0 /* null if c not found in n chars */
Dmemcpy.S107 copy tmp5,tmp1
124 bp_0: copy tmp1,tmp2 /* switch registers used in the shift process. */
/picolibc-3.7.0-3.6.0/newlib/libc/machine/rx/
Dstrncat.S12 ;; r3 => Max number of bytes to copy
34 mov r1, r4 ; Save a copy of the dest pointer.
35 mov r2, r5 ; Save a copy of the source pointer.
36 mov r3, r14 ; Save a copy of the byte count.
45 mov r1, r5 ; Save a copy of the dest pointer.
48 …add #0, r14, r3 ; Restore the number of bytes to copy (again), but this time set the Z flag as wel…
Dmemmove.S22 blt 3f ; If SRC < DEST copy backwards
24 mov r1, r14 ; Save a copy of DEST
43 mov r1, r4 ; Save a copy of DEST
45 blt 2f ; If SRC (r2) is less than DEST (r1) then copy backwards
Dstrcat.S13 mov r1, r4 ; Save a copy of the dest pointer.
28 mov r1, r4 ; Save a copy of the dest pointer.
29 mov r2, r5 ; Save a copy of the source pointer.
Dmemcpy.S20 mov r1, r14 ; Save a copy of DEST
29 mov r1, r4 ; Save a copy of DEST
Dstrncpy.S30 mov r1, r4 ; Save a copy of the dest pointer.
31 mov r3, r5 ; Save a copy of the byte count
/picolibc-3.7.0-3.6.0/newlib/libc/machine/i960/
Dstrdup.S57 mov g0,r3 # Keep a copy of the original string addr
62 mov r3,g1 # Original string addr is now src for copy
Dstrncpy_ca.S129 lda (LSW),g1 # keep a copy of the src word
131 bl.f Lcase_1_cloop.a # branch if fewer than four bytes to copy
172 lda (g5),LSW # keep a copy of the current mask
178 andnot g5,g1,g1 # last bytes to copy, and null pad rest of word
180 subo 1,LSW,g5 # mask to get last bytes to copy, and null pad
181 and g5,g1,g1 # last bytes to copy, and null pad rest of word
188 bl.f Lcase_1_cloop.b # branch if fewer than four bytes to copy
195 lda (g0),g1 # copy dest byte ptr
196 mov LSW,MSW # make copy of first word of src
Dstrrchr.S104 mov g4,g5 # copy word
110 bno Lsearch_for_word_with_char_or_null # branch if no copy of char
Dstrcpy.S126 mov g5,g7 # copy second word
160 mov g2, g4 # save a copy of the source word
/picolibc-3.7.0-3.6.0/newlib/libc/machine/h8300/
Dmemset.S28 ; Fill er1 with the byte to copy.
33 ; the main loop. r2 >= 0 if there is a longword to copy.
Dmemcpy.S31 ; See whether the copy is long enough to use the movmd.l code.
Dreg_memcpy.S27 MOVP A0P,A3P ; keep copy of result
/picolibc-3.7.0-3.6.0/newlib/
Drefcontainers.xslt9 <xsl:copy>
12 </xsl:copy>
/picolibc-3.7.0-3.6.0/
DCOPYING.GPL26 Everyone is permitted to copy and distribute verbatim copies
40 (2) offer you this license which gives you legal permission to copy,
79 1. You may copy and distribute verbatim copies of the Program's
81 conspicuously and appropriately publish on each copy an appropriate
84 and give any other recipients of the Program a copy of this License
87 You may charge a fee for the physical act of transferring a copy, and
90 2. You may modify your copy or copies of the Program or any portion
91 of it, thus forming a work based on the Program, and copy and
109 these conditions, and telling the user how to view a copy of this
134 3. You may copy and distribute the Program (or a work based on it,
[all …]

123