Re: [PATCH v2] bitops.h: add sign_extend8(), 16 and 64 functions

From: Guenter Roeck
Date: Mon Jan 12 2015 - 14:49:34 EST


On Mon, Jan 12, 2015 at 06:22:50PM +0100, Martin Kepplinger wrote:
> This adds helper functions for sign-extending signed values of any lower
> (hardware-)given size to s8, s16 or s64 respectively, just like sign_extend32()
> for s32.
>
> Signed-off-by: Martin Kepplinger <martink@xxxxxxxxx>
> Suggested-by: Christoph Muellner <christoph.muellner@xxxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/