Searched refs:vectorComponentwiseFold (Results 1 – 1 of 1) sorted by relevance
97 const auto vectorComponentwiseFold = [&](auto foldFn) -> std::unique_ptr<Expression> { in simplify_vector() local110 case Token::Kind::TK_PLUS: return vectorComponentwiseFold([](U a, U b) { return a + b; }); in simplify_vector()111 case Token::Kind::TK_MINUS: return vectorComponentwiseFold([](U a, U b) { return a - b; }); in simplify_vector()112 case Token::Kind::TK_STAR: return vectorComponentwiseFold([](U a, U b) { return a * b; }); in simplify_vector()113 case Token::Kind::TK_SLASH: return vectorComponentwiseFold([](T a, T b) { return a / b; }); in simplify_vector()