Walter Bright <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Walter Bright <> 2012-04-16 
02:17:30 PDT ---
The following is now recognized and replaced with bswap:


where p is a pointer to a ubyte. I realize that there are many, many ways to
write bswap, but this is the recognized one. (The operands to | can at least
appear in any order.)



is now recognized and replaced with *cast(uint*)p, at least for x86 byte

What remains to be done is to provide such a body for core.bitop.bswap() and
remove bswap from the compiler intrinsics.

For reference:

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to