+ static const char fn_name_sinh[] = "sinh"; + static const char fn_name_cosh[] = "cosh"; + + if (!(arg = intrinsic_float_convert_arg(ctx, params, params->args[0], loc))) + return false; + type = arg->data_type; + + fn_name = sinh_mode ? fn_name_sinh : fn_name_cosh; + combiner = sinh_mode ? "-" : "+"; + + if (!(body = hlsl_sprintf_alloc(ctx, template, + type->name, fn_name, type->name, + combiner))) + return false;
So ```c type_name = arg->data_type->name; if (!(body = hlsl_sprintf_alloc(ctx, template, type_name, sinh_mode ? "sinh" : "cosh", type_name, sinh_mode ? "-" : "+"))) return false; ``` right?