idth</span><span class="p">)</span>
        <span class="n">pre_threshold</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pre_scaling_impl</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">input_bit_width</span><span class="p">,</span> <span class="n">input_is_signed</span><span class="p">)</span>
        <span class="n">pre_scale</span> <span class="o">=</span> <span class="n">pre_threshold</span> <span class="