Home
last modified time | relevance | path

Searched refs:arithmetic_expression (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/native/utils/grammar/semantics/evaluators/
Darithmetic-eval.cc102 const ArithmeticExpression* arithmetic_expression = in Apply() local
104 switch (arithmetic_expression->base_type()) { in Apply()
106 return Reduce<int8>(composer_, context, arithmetic_expression, arena); in Apply()
108 return Reduce<uint8>(composer_, context, arithmetic_expression, arena); in Apply()
110 return Reduce<int16>(composer_, context, arithmetic_expression, arena); in Apply()
112 return Reduce<uint16>(composer_, context, arithmetic_expression, arena); in Apply()
114 return Reduce<int32>(composer_, context, arithmetic_expression, arena); in Apply()
116 return Reduce<uint32>(composer_, context, arithmetic_expression, arena); in Apply()
118 return Reduce<int64>(composer_, context, arithmetic_expression, arena); in Apply()
120 return Reduce<uint64>(composer_, context, arithmetic_expression, arena); in Apply()
[all …]
Darithmetic-eval_test.cc41 ArithmeticExpressionT arithmetic_expression; in Eval() local
42 arithmetic_expression.base_type = flatbuffers_base_type<T>::value; in Eval()
43 arithmetic_expression.op = op; in Eval()
44 arithmetic_expression.values.push_back( in Eval()
46 arithmetic_expression.values.push_back( in Eval()
48 arithmetic_expression.values.push_back( in Eval()
50 arithmetic_expression.values.push_back( in Eval()
53 CreateExpression(std::move(arithmetic_expression)); in Eval()