Faster checking for non-portable functions in arithmetic expressions