Ensured abs does what I think it should.
Initial implementation for various functions. The CUDA side points to the appropriate single or double-precision
function.

Switching is done based on HEMI_DEV_CODE preprocessor statement.