]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
linux/compat.h: port lower_32_bits and upper_32_bits from Linux
authorLijun Pan <LIJUN.PAN@FREESCALE.COM>
Fri, 20 Jun 2014 17:17:29 +0000 (12:17 -0500)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:24 +0000 (07:44 -0400)
commit8f2df5d369ea57a2c1e4697e508a86fc1346e76f
tree908ab7828c517bcd8823c9e256eb0a284c4218b6
parent9d78b9ae8d39f59875607976dbdce0f6f31ed41c
linux/compat.h: port lower_32_bits and upper_32_bits from Linux

[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 <Lijun.Pan@freescale.com>
include/linux/compat.h