Implemented a file with useful macros.

Signed-off-by: Christian Gunderman <gundermanc@gmail.com>