On 5/15/24 12:03 PM, Paul Eggert wrote: >> If we can ensure byteswap.h functions are defined as functions, >> wouldn't it make sense to just define these as macros to them? > > Not sure why macros would be helpful. If functions suffice for good > performance when compiling with -O2, it's better to use functions than macros.
True. I'll revisit my patches and perfer inline functions. Your stdbit implementation serves as a good example for me. Thanks! Collin