[PATCH 1/6] bitops.h: add sign_extend8 function

2014-12-15 Thread Martin Kepplinger
This adds a helper function that extends any signed value smaller than 8 bits to a s8. Signed-off-by: Martin Kepplinger --- include/linux/bitops.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 5d858e0..3c2a539 100644 ---

[PATCH 1/6] bitops.h: add sign_extend8 function

2014-12-15 Thread Martin Kepplinger
This adds a helper function that extends any signed value smaller than 8 bits to a s8. Signed-off-by: Martin Kepplinger mart...@posteo.de --- include/linux/bitops.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index