Searched refs:inv_scale (Results 1 – 3 of 3) sorted by relevance
57 const float inv_scale = 1.0 / scale; in ComputeSpansCore() local58 const float inv_translate = -inv_scale * translate; in ComputeSpansCore()62 const float kernel_scale = antialias ? std::max(inv_scale, 1.0f) : 1.0f; in ComputeSpansCore()84 const float sample_f = col_f * inv_scale + inv_translate; in ComputeSpansCore()
75 xla::XlaOp inv_scale = xla::Div(one, input_scale); in Quantize() local81 xla::Floor(xla::Add(xla::Mul(clamped_shifted, inv_scale), half)); in Quantize()
5315 const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); in PlotEx() local5319 …ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); … in PlotEx()5320 …float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_m… in PlotEx()5331 const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); in PlotEx()