diff mbox

[07/33] bitutils: Add PPC_BITMASK8

Message ID 1466808476-32690-7-git-send-email-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt June 24, 2016, 10:47 p.m. UTC
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 include/bitutils.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Neuling July 6, 2016, 7:17 a.m. UTC | #1
On Sat, 2016-06-25 at 08:47 +1000, Benjamin Herrenschmidt wrote:
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Acked-by: Michael Neuling <mikey@neuling.org>

> ---
>  include/bitutils.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/bitutils.h b/include/bitutils.h
> index a262db1..d6d1f88 100644
> --- a/include/bitutils.h
> +++ b/include/bitutils.h
> @@ -32,6 +32,7 @@
>  #define PPC_BITMASK(bs,be)	((PPC_BIT(bs) - PPC_BIT(be)) |
> PPC_BIT(bs))
>  #define PPC_BITMASK32(bs,be)	((PPC_BIT32(bs) -
> PPC_BIT32(be))|PPC_BIT32(bs))
>  #define PPC_BITMASK16(bs,be)	((PPC_BIT16(bs) -
> PPC_BIT16(be))|PPC_BIT16(bs))
> +#define PPC_BITMASK8(bs,be)	((PPC_BIT8(bs) -
> PPC_BIT8(be))|PPC_BIT8(bs))
>  #define PPC_BITLSHIFT(be)	(63 - (be))
>  #define PPC_BITLSHIFT32(be)	(31 - (be))
>
diff mbox

Patch

diff --git a/include/bitutils.h b/include/bitutils.h
index a262db1..d6d1f88 100644
--- a/include/bitutils.h
+++ b/include/bitutils.h
@@ -32,6 +32,7 @@ 
 #define PPC_BITMASK(bs,be)	((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
 #define PPC_BITMASK32(bs,be)	((PPC_BIT32(bs) - PPC_BIT32(be))|PPC_BIT32(bs))
 #define PPC_BITMASK16(bs,be)	((PPC_BIT16(bs) - PPC_BIT16(be))|PPC_BIT16(bs))
+#define PPC_BITMASK8(bs,be)	((PPC_BIT8(bs) - PPC_BIT8(be))|PPC_BIT8(bs))
 #define PPC_BITLSHIFT(be)	(63 - (be))
 #define PPC_BITLSHIFT32(be)	(31 - (be))