Share via


_byteswap_ushort

This function returns the argument value with its bytes in reverse order.

unsigned short __cdecl _byteswap_ushort(
  unsigned short arg1
);

Parameters

  • arg1
    [in] The two-byte integer that the function operates on.

Return Values

The value of the argument with bytes reversed.

Remarks

This function can be used to translate between big-endian and little endian data representations.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cmnintrin.h.

See Also

Common Intrinsic Functions

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.