MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / int_val

Function int_val

src/runtime/CL/mlgo/MLGOParser.cpp:306–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306int int_val(TokenStream &in, bool &valid)
307{
308 LOG_TOKEN_POS(in, pos);
309 auto tok = in.take();
310 if (tok.type != TokenType::Int)
311 {
312 FAIL_WITH_MSG_DEFAULT(valid, -1, pos, "Expect int token");
313 }
314 int val{};
315 std::stringstream(tok.value) >> val;
316 return val;
317}
318
319unsigned int uint_val(TokenStream &in, bool &valid)
320{

Callers 1

uint_valFunction · 0.85

Calls 1

takeMethod · 0.80

Tested by

no test coverage detected