The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
byteswap
core
bitop
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
Source
See Implementation
core
bitop
aliases
bswap
byteswap
functions
_popcnt
bitswap
bsf
bsr
bt
btc
btr
bts
inp
inpl
inpw
outp
outpl
outpw
popcnt
rol
ror
structs
BitRange
Swaps bytes in a 2 byte ushort.