There are many known bit twiddling hacks, e.g. the list here; as well as numerous questions here on SO.
Is there a standard-ish library, or even a single header file, implementing all of these? (I would get, as inline functions and/or as preprocessor macros.)
Edit: I'm not interested in implementations using specialized types, i.e. bit vectors or bit sets, but rather code which works directly on your ints/unsigneds/etc.