We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2322259 commit cf592ffCopy full SHA for cf592ff
src/codegen/codegen_c.cpp
@@ -483,8 +483,9 @@ void CodeGen_C::visit(const Min* op) {
483
op->operands[0].accept(this);
484
return;
485
}
486
+ const auto opString = op->type.isFloat() ? "fmin" : "TACO_MIN";
487
for (size_t i=0; i<op->operands.size()-1; i++) {
- stream << "TACO_MIN(";
488
+ stream << opString << "(";
489
op->operands[i].accept(this);
490
stream << ",";
491
0 commit comments