• ramius345
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    1 年前

    Don’t need an if, just set the variable and collect the data. Saved you a jump instruction. The compiler is going to optimize it out anyway, but simpler code is better and some people forget the -O flag.