|
|
@ -9,15 +9,15 @@ void byte_copy(void* out, unsigned int len, const void* in) {
|
|
|
|
if (len>127) {
|
|
|
|
if (len>127) {
|
|
|
|
while ((unsigned long)s&(sizeof(unsigned long)-1))
|
|
|
|
while ((unsigned long)s&(sizeof(unsigned long)-1))
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* s (destination) is now unsigned long aligned */
|
|
|
|
/* s (destination) is now unsigned long aligned */
|
|
|
|
#ifndef __i386__
|
|
|
|
#ifndef __i386__
|
|
|
|
if (!((unsigned long)t&(sizeof(unsigned long)-1)))
|
|
|
|
if (!((unsigned long)t&(sizeof(unsigned long)-1)))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
while (t+sizeof(unsigned long)<=u) {
|
|
|
|
while (t+sizeof(unsigned long)<=u) {
|
|
|
|
*(unsigned long*)s=*(unsigned long*)t;
|
|
|
|
*(unsigned long*)s=*(unsigned long*)t;
|
|
|
|
s+=sizeof(unsigned long); t+=sizeof(unsigned long);
|
|
|
|
s+=sizeof(unsigned long); t+=sizeof(unsigned long);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
for (;;) {
|
|
|
|
for (;;) {
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|
if (t==u) break; *s=*t; ++s; ++t;
|
|
|
|