Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for Replaced (0.04 seconds)

  1. doc/go_spec.html

    If the divisor is zero at run time, a <a href="#Run_time_panics">run-time panic</a> occurs.
    If the dividend is non-negative and the divisor is a constant power of 2,
    the division may be replaced by a right shift, and computing the remainder may
    be replaced by a bitwise AND operation:
    </p>
    
    <pre>
     x     x / 4     x % 4     x &gt;&gt; 2     x &amp; 3
     11      2         3         2          3
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top