Implement log1p builtin