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 19 matching lines...) Expand all Loading... |
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 Loading... |
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 */ |
OLD | NEW |