Skip to content
Snippets Groups Projects
Commit 89a93e3c authored by Praneet Rathi's avatar Praneet Rathi
Browse files

cu

parent 2c6c38c0
No related branches found
No related tags found
1 merge request!115GPU backend
Pipeline #201049 failed
......@@ -419,7 +419,9 @@ namespace cg = cooperative_groups;
}
// Pull primitive return to a pointer parameter
if self.types[self.return_type_id.idx()].is_primitive() {
write!(w, ", ")?;
if !first_param {
write!(w, ", ")?;
}
write!(
w,
"{} __restrict__ ret",
......@@ -1907,7 +1909,7 @@ extern \"C\" {} {}(", if ret_primitive { ret_type.clone() } else { "void".to_str
_ => "sinh",
},
Intrinsic::Sqrt => match ty {
Type::Float32 => "__sqrtf",
Type::Float32 => "sqrtf",
ty if ty.is_signed() || ty.is_unsigned() => "isqrt",
_ => "sqrt",
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment