OLD | NEW |
---|---|
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 18 matching lines...) Expand all Loading... | |
29 PORTABILITY | 29 PORTABILITY |
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. |
Derek Schuff
2015/01/16 17:29:06
also add the same comment from the other file.
jvoung (off chromium)
2015/01/16 17:54:44
Done.
| |
40 * See https://code.google.com/p/nativeclient/issues/detail?id=3493 | 40 * See https://code.google.com/p/nativeclient/issues/detail?id=3493 |
41 */ | 41 */ |
42 #ifndef __pnacl__ | 42 #ifndef PNACL_BITCODE |
43 | 43 |
44 #include <string.h> | 44 #include <string.h> |
45 #include <_ansi.h> | 45 #include <_ansi.h> |
46 #include <stddef.h> | 46 #include <stddef.h> |
47 #include <limits.h> | 47 #include <limits.h> |
48 #include "local.h" | 48 #include "local.h" |
49 | 49 |
50 /* Nonzero if either X or Y is not aligned on a "long" boundary. */ | 50 /* Nonzero if either X or Y is not aligned on a "long" boundary. */ |
51 #define UNALIGNED(X, Y) \ | 51 #define UNALIGNED(X, Y) \ |
52 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) | 52 (((long)X & (sizeof (long) - 1)) | ((long)Y & (sizeof (long) - 1))) |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 while (length--) | 142 while (length--) |
143 { | 143 { |
144 *dst++ = *src++; | 144 *dst++ = *src++; |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
148 return dst_void; | 148 return dst_void; |
149 #endif /* not PREFER_SIZE_OVER_SPEED */ | 149 #endif /* not PREFER_SIZE_OVER_SPEED */ |
150 } | 150 } |
151 | 151 |
152 #endif /* __pnacl__ */ | 152 #endif /* PNACL_BITCODE */ |
OLD | NEW |