Lines Matching refs:ti
159 char *rnndec_decodeval(struct rnndeccontext *ctx, struct rnntypeinfo *ti, uint64_t value) {
160 int width = ti->high - ti->low + 1;
172 if (!ti)
174 value = (value & typeinfo_mask(ti)) >> ti->low;
175 value <<= ti->shr;
177 switch (ti->type) {
179 vals = ti->eenum->vals;
180 valsnum = ti->eenum->valsnum;
183 vals = ti->vals;
184 valsnum = ti->valsnum;
190 if (ti->addvariant) {
191 rnndec_varadd(ctx, ti->eenum->name, ctmp);
197 bitfields = ti->ebitset->bitfields;
198 bitfieldsnum = ti->ebitset->bitfieldsnum;
201 bitfields = ti->bitfields;
202 bitfieldsnum = ti->bitfieldsnum;
260 return rnndec_decodeval(ctx, &ti->spectype->typeinfo, value);
267 ((double)((UINT64_C(1) << width) - value)) / ((double)(1 << ti->radix)),
274 ((double)value) / ((double)(1LL << ti->radix)),
318 if (value_orig & ~typeinfo_mask(ti)) {
319 asprintf (&tmp, "%s | %s%#"PRIx64"%s", res, ctx->colors->err, value_orig & ~typeinfo_mask(ti), ctx->colors->reset);