Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: newlib/libc/string/memmove.c

Issue 855013002: Make mem{cpy,move,set} pnacl bitcode disablement apply to biased bitcode. (Closed) Base URL: https://chromium.googlesource.com/native_client/nacl-newlib.git@master
Patch Set: comment everywhere Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « newlib/libc/string/memcpy.c ('k') | newlib/libc/string/memset.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 FUNCTION 2 FUNCTION
3 <<memmove>>---move possibly overlapping memory 3 <<memmove>>---move possibly overlapping memory
4 4
5 INDEX 5 INDEX
6 memmove 6 memmove
7 7
8 ANSI_SYNOPSIS 8 ANSI_SYNOPSIS
9 #include <string.h> 9 #include <string.h>
10 void *memmove(void *<[dst]>, const void *<[src]>, size_t <[length]>); 10 void *memmove(void *<[dst]>, const void *<[src]>, size_t <[length]>);
(...skipping 19 matching lines...) Expand all
30 <<memmove>> is ANSI C. 30 <<memmove>> is ANSI C.
31 31
32 <<memmove>> requires no supporting OS subroutines. 32 <<memmove>> requires no supporting OS subroutines.
33 33
34 QUICKREF 34 QUICKREF
35 memmove ansi pure 35 memmove ansi pure
36 */ 36 */
37 37
38 /* 38 /*
39 * The body of this function should not appear in PNaCl bitcode. 39 * The body of this function should not appear in PNaCl bitcode.
40 * We use PNACL_BITCODE instead of __le32__ or __pnacl__ since this
41 * should also apply to biased bitcode.
40 * See https://code.google.com/p/nativeclient/issues/detail?id=3493 42 * See https://code.google.com/p/nativeclient/issues/detail?id=3493
41 */ 43 */
42 #ifndef __pnacl__ 44 #ifndef PNACL_BITCODE
43 45
44 #include <string.h> 46 #include <string.h>
45 #include <_ansi.h> 47 #include <_ansi.h>
46 #include <stddef.h> 48 #include <stddef.h>
47 #include <limits.h> 49 #include <limits.h>
48 #include "local.h" 50 #include "local.h"
49 51
50 /* Nonzero if either X or Y is not aligned on a "long" boundary. */ 52 /* Nonzero if either X or Y is not aligned on a "long" boundary. */
51 #define UNALIGNED(X, Y) \ 53 #define UNALIGNED(X, Y) \
52 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) 54 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1)))
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 while (length--) 144 while (length--)
143 { 145 {
144 *dst++ = *src++; 146 *dst++ = *src++;
145 } 147 }
146 } 148 }
147 149
148 return dst_void; 150 return dst_void;
149 #endif /* not PREFER_SIZE_OVER_SPEED */ 151 #endif /* not PREFER_SIZE_OVER_SPEED */
150 } 152 }
151 153
152 #endif /* __pnacl__ */ 154 #endif /* PNACL_BITCODE */
OLDNEW
« no previous file with comments | « newlib/libc/string/memcpy.c ('k') | newlib/libc/string/memset.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698