[Mesa-dev] [PATCH 2/2] r600g: introduce r600_bc_src_toggle_neg helper and fix SUB & LRP

Henri Verbeet hverbeet at gmail.com
Thu Jul 7 12:19:11 PDT 2011


On 7 July 2011 06:20, Vadim Girlin <vadimgirlin at gmail.com> wrote:
> +static inline void r600_bc_src_toggle_neg(struct r600_bc_alu_src *bc_src)
> +{
> +       bc_src->neg = 1 - bc_src->neg;
> +}
> +
Not necessarily wrong, but I think "bc_src->neg = !bc_src->neg;" would
be the more common way to write this.


More information about the mesa-dev mailing list