From: Tom Rini Date: Tue, 22 Jul 2014 15:22:02 -0400 Subject: [U-Boot] [U-Boot, v4, 1/2] linux/compat.h: port lower_32_bits and upper_32_bits from Linux In-Reply-To: <1403284649-14629-1-git-send-email-Lijun.Pan@freescale.com> References: <1403284649-14629-1-git-send-email-Lijun.Pan@freescale.com> Message-ID: <20140722192202.GW1847@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 20, 2014 at 12:17:29PM -0500, Lijun Pan wrote: > [backport from linux commit 204b885e and 218e180e7] > 64 bit processors are becomming more and more popular. > lower_32_bits and upper_32_bits save our labor doing > shifts/manipulations like (u32)(n) and (u32)((n) >> 32). > They are good helpers in both little and big endian cases. > Port these two functions here from Linux:include/linux/kernel.h, > cater the comment message to little/big endian cases. > Later on, developers could include linux/compat.h if they want to > use these two functions. > > Signed-off-by: Lijun Pan Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: