[PATCHv2 1/3] regmap: core: Introduce regsiter stride order

2016-01-04 Thread Xiubo Li
Since the register stride should always equal to 2^N, and bit rotation is much faster than multiplication and division. So introducing the stride order and using bit rotation to get the offset of the register from the index to improve the performance. Signed-off-by: Xiubo Li ---

[PATCHv2 1/3] regmap: core: Introduce regsiter stride order

2016-01-04 Thread Xiubo Li
Since the register stride should always equal to 2^N, and bit rotation is much faster than multiplication and division. So introducing the stride order and using bit rotation to get the offset of the register from the index to improve the performance. Signed-off-by: Xiubo Li