The OpenD Programming Language

bswap

Swaps bytes in an 8 byte ulong end-to-end, i.e. byte 0 becomes byte 7, byte 1 becomes byte 6, etc. This is meant to be recognized by the compiler as an intrinsic.

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

Meta