Lijun Pan 8f2df5d369 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>
2014-07-22 07:44:24 -04:00
..
2011-10-01 21:56:20 +02:00
2011-01-18 23:38:08 +01:00
2014-01-08 17:20:34 -07:00
2011-10-17 22:25:34 +02:00
2010-05-06 00:17:01 +02:00
2010-05-06 00:17:01 +02:00
2010-05-06 00:17:01 +02:00
2010-10-27 22:48:30 +02:00
2014-01-09 16:08:15 +01:00
2009-12-05 01:30:23 +01:00
2011-09-11 21:24:09 +02:00
2013-05-31 17:12:03 -05:00
2012-10-15 11:53:47 -07:00
2013-11-08 15:25:13 -05:00