Generate functions for 8, 16 and 32 bits using x macros