Demacro-ify the user BITMASK helpers
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 22 Feb 2016 22:13:45 +0000 (17:13 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 May 2016 21:11:15 +0000 (17:11 -0400)
commit613a6ad92985d4ab9f9ecdd874108262634cefd9
treef3ab3f216b87f29291a573beebe8bde4e9e2fb30
parentd991d4b7322e92baa15bd61aea2eefb1f0ee9a65
Demacro-ify the user BITMASK helpers

If you passed in e.g. bit 7 to CLR_BITMASK_ATOMIC(), the compiler would
give you a warning.  The joy of macros.

This implements most of the macros as inline functions.  Other than fixing
the bug with _size, the code should be the same as before - just as
functions, not macros.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/x86/bitmask.h