This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/40210] gcc needs byte swap builtins



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-05-20 19:01 -------
http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Other-Builtins.html#Other-Builtins


? Built-in Function: int32_t __builtin_bswap32 (int32_t x)
Returns x with the order of the bytes reversed; for example, 0xaabbccdd becomes
0xddccbbaa. Byte here always means exactly 8 bits.

? Built-in Function: int64_t __builtin_bswap64 (int64_t x)
Similar to __builtin_bswap32, except the argument and return types are 64-bit.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40210


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]