Skip to content
Commit 1697599e authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

bitfield.h: add FIELD_FIT() helper



Add a helper for checking at runtime that a value will fit inside
a specified field/mask.

Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4f2bd6b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment