Write the `{KMG}iB' macros