Rev 2927 | Rev 3153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3149 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | ALIGN_UP((uintptr_t) dst, sizeof(unative_t)) != (uintptr_t) dst) { |
65 | ALIGN_UP((uintptr_t) dst, sizeof(unative_t)) != (uintptr_t) dst) { |
66 | for (i = 0; i < cnt; i++) |
66 | for (i = 0; i < cnt; i++) |
67 | ((uint8_t *) dst)[i] = ((uint8_t *) src)[i]; |
67 | ((uint8_t *) dst)[i] = ((uint8_t *) src)[i]; |
68 | } else { |
68 | } else { |
69 | 69 | ||
70 | for (i = 0; i < cnt/sizeof(unative_t); i++) |
70 | for (i = 0; i < cnt / sizeof(unative_t); i++) |
71 | ((unative_t *) dst)[i] = ((unative_t *) src)[i]; |
71 | ((unative_t *) dst)[i] = ((unative_t *) src)[i]; |
72 | 72 | ||
73 | for (j = 0; j < cnt%sizeof(unative_t); j++) |
73 | for (j = 0; j < cnt % sizeof(unative_t); j++) |
74 | ((uint8_t *)(((unative_t *) dst) + i))[j] = ((uint8_t *)(((unative_t *) src) + i))[j]; |
74 | ((uint8_t *)(((unative_t *) dst) + i))[j] = ((uint8_t *)(((unative_t *) src) + i))[j]; |
75 | } |
75 | } |
76 | 76 | ||
77 | return (char *) src; |
77 | return (char *) src; |
78 | } |
78 | } |