Searched refs:scaled_value (Results 1 – 5 of 5) sorted by relevance
95 const int32_t scaled_value = (int32_t) (value >= 0 ? abs_scaled_value : -abs_scaled_value); in xnn_qu8_requantize_precise() local98 int32_t clamped_value = scaled_value; in xnn_qu8_requantize_precise()143 const int32_t scaled_value = (int32_t) (value >= 0 ? abs_scaled_value : -abs_scaled_value); in xnn_qs8_requantize_precise() local146 int32_t clamped_value = scaled_value; in xnn_qs8_requantize_precise()
291 double scaled_value = (*texel)[i]; in ScaleTexelValuesIfNeeded() local293 scaled_value /= static_cast<double>((1 << seg.GetNumBits()) - 1); in ScaleTexelValuesIfNeeded()295 scaled_value /= static_cast<double>((1 << (seg.GetNumBits() - 1)) - 1); in ScaleTexelValuesIfNeeded()297 scaled_value /= static_cast<double>((1 << seg.GetNumBits()) - 1); in ScaleTexelValuesIfNeeded()299 scaled_value = SRGBToLinearValue(scaled_value); in ScaleTexelValuesIfNeeded()305 (*texel)[i] = scaled_value; in ScaleTexelValuesIfNeeded()
312 const double scaled_value = in IsExactlyRepresentable() local315 scaled_value - std::round(scaled_value); in IsExactlyRepresentable()319 const double rounded_scaled_value = std::round(scaled_value); in IsExactlyRepresentable()
1181 int32 input_size, float* scaled_value, in ComputeInterpolationValues() argument1184 *scaled_value = (value + 0.5f) * scale - 0.5f; in ComputeInterpolationValues()1186 *scaled_value = value * scale; in ComputeInterpolationValues()1188 float scaled_value_floor = std::floor(*scaled_value); in ComputeInterpolationValues()1192 std::min(static_cast<int32>(std::ceil(*scaled_value)), input_size - 1); in ComputeInterpolationValues()1266 int32 input_size, int32* scaled_value, in ComputeInterpolationValues() argument1269 *scaled_value = value * scale_10 + scale_10 / 2 - (1 << 9); in ComputeInterpolationValues()1271 *scaled_value = value * scale_10; in ComputeInterpolationValues()1273 *lower_bound = std::max(*scaled_value / (1 << 10), 0); in ComputeInterpolationValues()1275 std::min((*scaled_value + (1 << 10) - 1) / (1 << 10), input_size - 1); in ComputeInterpolationValues()
2910 scaled_value; in ReadDCMPixels() local2912 scaled_value=pixel_value*info->rescale_slope+ in ReadDCMPixels()2914 index=(int) scaled_value; in ReadDCMPixels()2925 if (scaled_value <= window_min) in ReadDCMPixels()2928 if (scaled_value > window_max) in ReadDCMPixels()2931 index=(int) (info->max_value*(((scaled_value- in ReadDCMPixels()