From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Wed, 7 Oct 2009 10:59:20 +0200 Subject: [U-Boot] [PATCH 1/3] memcpy: use 32-bit copies if possible In-Reply-To: <200910070452.02225.vapier@gentoo.org> References: <200910070452.02225.vapier@gentoo.org> Message-ID: <20091007085920.GA27225@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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