
6 Sep
2011
6 Sep
'11
11:54 p.m.
Mathias Gaunard wrote:
On 06/09/2011 18:28, Phil Endecott wrote:
shifts and bitwise ops seem to produce better code
The best code depends on the actual type and architecture.
Perhaps.
The best thing to do, for performance, is to call specialized functions for each type, such as built-ins or intrinsics.
Unfortunately not, no; in my tests the gcc built-ins were the worse-performing on one platform.
I don't think this is really important though.
You mean the performance of these endian operations in general is not important? Phil.