The OpenD Programming Language

bswap

Swaps bytes in a 4 byte uint end-to-end, i.e. byte 0 becomes byte 3, byte 1 becomes byte 2, byte 2 becomes byte 1, byte 3 becomes byte 0.

  1. alias bswap = llvm_bswap!uint
    import core.bitop;
    version(LDC)
    nothrow @safe @nogc
    alias bswap = llvm_bswap!uint
  2. alias bswap = llvm_bswap!ulong

Meta