Added some portable math shenanigans, under the hemi namespace.