Subversion Repositories HelenOS

Rev

Rev 4055 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4055 Rev 4537
Line 93... Line 93...
93
    unsigned long n;
93
    unsigned long n;
94
} __attribute__ ((packed));
94
} __attribute__ ((packed));
95
 
95
 
96
static void *unaligned_memcpy(void *dst, const void *src, size_t n)
96
static void *unaligned_memcpy(void *dst, const void *src, size_t n)
97
{
97
{
98
    int i, j;
98
    size_t i, j;
99
    struct along *adst = dst;
99
    struct along *adst = dst;
100
    const struct along *asrc = src;
100
    const struct along *asrc = src;
101
 
101
 
102
    for (i = 0; i < n / sizeof(unsigned long); i++)
102
    for (i = 0; i < n / sizeof(unsigned long); i++)
103
        adst[i].n = asrc[i].n;
103
        adst[i].n = asrc[i].n;