Home
last modified time | relevance | path

Searched refs:revdenom (Results 1 - 2 of 2) sorted by relevance

/third_party/mesa3d/src/util/
H A Dformat_rgb9e5.h63 union { float f; uint32_t u; } rc, bc, gc, maxrgb, revdenom; in float3_to_rgb9e5() local
80 revdenom.u = revdenom_biasedexp << 23; in float3_to_rgb9e5()
86 * We avoid the doubles ((int) rc * revdenom + 0.5) by doing the rounding in float3_to_rgb9e5()
87 * ourselves (revdenom was adjusted by +1, above). in float3_to_rgb9e5()
89 rm = (int) (rc.f * revdenom.f); in float3_to_rgb9e5()
90 gm = (int) (gc.f * revdenom.f); in float3_to_rgb9e5()
91 bm = (int) (bc.f * revdenom.f); in float3_to_rgb9e5()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_format_convert.h442 /* revdenom.u = revdenom_biasedexp << 23; */
443 nir_ssa_def *revdenom =
446 /* rm = (int) (rc.f * revdenom.f);
447 * gm = (int) (gc.f * revdenom.f);
448 * bm = (int) (bc.f * revdenom.f);
451 nir_f2i32(b, nir_fmul(b, clamped, revdenom));

Completed in 2 milliseconds