Skip to content
Commit e31a5016 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller
Browse files

bitfield.h: add FIELD_MAX() and field_max()



Define FIELD_MAX(), which supplies the maximum value that can be
represented by a field value.  Define field_max() as well, to go
along with the lower-case forms of the field mask functions.

Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82a9822b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment