That was implied in Dave's remark and in my answer.
>
> The final answer may be obtained from examining the compiler's assembly
> output, and see which combination ('or' or 'add') produces the best
> code.
We can't do that as that should be done for all the supported processors.
Furthermore, it is the compiler's job to produce the best machine code.
The only thing we can do to help the compiler is write simple code. From
a logical point of view, oring is what is needed here, and from a hardware
point of view oring is cheaper than adding.
> Jeff
Now, back to the real problem :) . Will you apply my patch ?
Philippe
Philippe De Muyter phdm@macqel.be Tel +32 27029044
Macq Electronique SA rue de l'Aeronef 2 B-1140 Bruxelles Fax +32 27029077
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/