Lines Matching refs:regval
185 pushdecval(struct lua_State *L, struct rnn *rnn, uint64_t regval, in pushdecval() argument
189 switch (rnn_decodelem(rnn, info, regval, &val)) { in pushdecval()
218 uint64_t regval; in l_rnn_etype() local
225 regval = rnn_val(rnn, offset); in l_rnn_etype()
227 regval |= (uint64_t)rnn_val(rnn, offset + 1) << 32; in l_rnn_etype()
228 regval <<= elem->typeinfo.shr; in l_rnn_etype()
229 ret = pushdecval(L, rnn, regval, &elem->typeinfo); in l_rnn_etype()
365 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_index() local
367 regval &= typeinfo_mask(&bf->typeinfo); in l_rnn_reg_meta_index()
368 regval >>= bf->typeinfo.low; in l_rnn_reg_meta_index()
369 regval <<= bf->typeinfo.shr; in l_rnn_reg_meta_index()
372 rnndoff->elem->subelemsnum, bf->typeinfo.type, regval); in l_rnn_reg_meta_index()
374 return pushdecval(L, rnndoff->rnn, regval, &bf->typeinfo); in l_rnn_reg_meta_index()
386 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_tostring() local
390 decoded = rnndec_decodeval(rnndoff->rnn->vc, info->typeinfo, regval); in l_rnn_reg_meta_tostring()
392 asprintf(&decoded, "%08x", regval); in l_rnn_reg_meta_tostring()
407 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_tonumber() local
409 regval <<= rnndoff->elem->typeinfo.shr; in l_rnn_reg_meta_tonumber()
411 lua_pushnumber(L, regval); in l_rnn_reg_meta_tonumber()
512 uint32_t regval = (uint32_t)lua_tonumber(L, 3); in l_rnn_regval() local
516 decoded = rnndec_decodeval(rnn->vc, info->typeinfo, regval); in l_rnn_regval()
518 asprintf(&decoded, "%08x", regval); in l_rnn_regval()