Lijun Pan and Tom Rini
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
..
2014-05-27 10:21:32 -04:00
2014-07-14 11:21:35 -04:00
2014-06-20 11:56:50 -06:00
2014-06-20 11:56:33 -06:00
2014-07-22 07:44:24 -04:00
2014-06-30 23:00:34 +02:00
2014-05-07 19:40:39 +09:00
2014-06-19 11:19:04 -04:00
2014-05-16 16:24:27 -05:00
2014-05-08 10:38:29 +02:00
2014-05-29 17:52:03 -04:00
2014-06-19 11:19:02 -04:00
2014-05-29 17:49:00 -04:00
2014-05-29 17:45:31 -04:00
2014-05-29 17:52:03 -04:00
2014-06-19 11:19:01 -04:00
2014-07-07 19:43:02 -04:00
2014-07-07 19:43:02 -04:00
2014-06-05 14:44:56 -04:00
2014-05-15 00:24:24 +02:00
2014-05-27 10:21:32 -04:00
2014-06-21 10:06:58 -06:00
2014-05-16 14:54:26 +09:00
2014-07-18 17:53:23 -04:00
2014-05-12 16:31:50 -04:00
2014-06-05 14:44:56 -04:00
2014-07-03 08:40:58 +02:00
2014-05-28 10:58:19 +09:00
2014-05-20 15:23:46 +02:00
2014-07-03 08:40:58 +02:00
2014-05-05 08:21:47 +02:00
2014-07-07 19:47:18 -04:00
2014-06-19 11:18:55 -04:00
2014-07-07 19:47:19 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-07-07 19:43:02 -04:00
2014-05-05 10:24:13 +02:00
2014-07-18 17:53:24 -04:00
2014-05-30 14:03:24 -04:00
2014-05-12 15:19:46 -04:00
2014-05-25 16:25:12 +02:00
2014-05-12 15:19:45 -04:00
2014-05-13 19:43:00 -04:00
2014-06-05 14:44:56 -04:00
2014-07-07 19:43:02 -04:00
2014-05-13 09:13:59 +02:00
2014-05-13 09:13:59 +02:00
2014-07-18 17:53:23 -04:00
2014-05-05 08:21:47 +02:00
2014-06-11 16:27:06 -04:00
2014-05-08 10:38:29 +02:00
2014-05-05 08:00:28 +02:00
2014-05-13 09:13:59 +02:00
2014-05-20 15:23:46 +02:00
2014-05-13 09:13:59 +02:00