add custom GRT isnan and isinf macros