[U-Boot] [PATCH 1/3] memcpy: use 32-bit copies if possible

Alessandro Rubini rubini-list at gnudd.com
Wed Oct 7 10:59:20 CEST 2009


> while 64bit isnt in today, might as well avoid unclean code from the
> start when possible.  in other words, used "unsigned int" rather
> than "u32" and cast to "unsigned long" rather than "int".

You are right. Will do. 

>> +		count /= 4;

> count >>= 2 ?  although gcc probably optimizes this properly.

gcc-4.0 for arm already turns it into a shift. I'll use
"sizeof(unsigned long)" in version 2.

Thanks
/alessandro


More information about the U-Boot mailing list