summaryrefslogtreecommitdiffstats
path: root/include/bitutils.h
Commit message (Collapse)AuthorAgeFilesLines
* bitutils: Add PPC_BITMASK8Benjamin Herrenschmidt2016-07-061-0/+1
| | | | | | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* include/bitutils.h: Add macros for 16-bit constantsAlistair Popple2015-10-261-0/+3
| | | | | Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* simplify GET/SETFIELD() use, add MASK_TO_LSH()Dan Streetman2015-02-191-5/+6
| | | | | | | | | | | | | | | | Currently, the GETFIELD() and SETFIELD() macros require the user to define both the _MASK and the _LSH of the field. However, the shift of the field is trivially determinable and there is no reason it needs to be specified by the user. Add MASK_TO_LSH() macro, which determines the shift of a given mask. Change GETFIELD() and SETFIELD() to use MASK_TO_LSH() to determine the shift of the specified mask, instead of requiring it to be specified by the user. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Initial commit of Open Source releaseBenjamin Herrenschmidt2014-07-021-0/+50
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud