get_bits: move tracing macros to end of file