The OpenD Programming Language

byteswap

Swaps bytes in a 2 byte ushort.

import core.bitop;
version(LDC)
nothrow @safe @nogc
alias byteswap = llvm_bswap!ushort

Return Value

x with bytes swapped

Meta