Unclear explanation for some builtins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I was just reading this:

https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html

and I believe the explanation regarding bswap32 and bswap64 is unclear.
It refers to the explanation of bswap16, but in that case, swapping both
halves and reversing the order of bytes constitutes the same action,
while in 32-bit and 64-bit values that's not the case.

I suggest you add at least a concrete example of those two bswap
primitives, e.g. on input 0xaabbccdd for 32-bits and on
0x1122334455667788 for 64 bits.

Respectfully,
Eyal Rozenberg

PS - If this should be a bug report, just let me know.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux