Changeset 04803bf in mainline for kernel/generic/src/lib/memstr.c
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/src/lib/memstr.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/memstr.c
rb50b5af2 r04803bf 43 43 44 44 #include <memstr.h> 45 #include < arch/types.h>45 #include <typedefs.h> 46 46 #include <align.h> 47 47 … … 62 62 unsigned int i, j; 63 63 64 if (ALIGN_UP((uintptr_t) src, sizeof( unative_t)) != (uintptr_t) src ||65 ALIGN_UP((uintptr_t) dst, sizeof( unative_t)) != (uintptr_t) dst) {64 if (ALIGN_UP((uintptr_t) src, sizeof(sysarg_t)) != (uintptr_t) src || 65 ALIGN_UP((uintptr_t) dst, sizeof(sysarg_t)) != (uintptr_t) dst) { 66 66 for (i = 0; i < cnt; i++) 67 67 ((uint8_t *) dst)[i] = ((uint8_t *) src)[i]; 68 68 } else { 69 for (i = 0; i < cnt / sizeof( unative_t); i++)70 (( unative_t *) dst)[i] = ((unative_t *) src)[i];69 for (i = 0; i < cnt / sizeof(sysarg_t); i++) 70 ((sysarg_t *) dst)[i] = ((sysarg_t *) src)[i]; 71 71 72 for (j = 0; j < cnt % sizeof( unative_t); j++)73 ((uint8_t *)((( unative_t *) dst) + i))[j] =74 ((uint8_t *)((( unative_t *) src) + i))[j];72 for (j = 0; j < cnt % sizeof(sysarg_t); j++) 73 ((uint8_t *)(((sysarg_t *) dst) + i))[j] = 74 ((uint8_t *)(((sysarg_t *) src) + i))[j]; 75 75 } 76 76
Note:
See TracChangeset
for help on using the changeset viewer.
