TianoCore EDK2 master
Loading...
Searching...
No Matches
SwapBytes16.c File Reference
#include "BaseLibInternals.h"

Go to the source code of this file.

Functions

UINT16 EFIAPI SwapBytes16 (IN UINT16 Value)
 

Detailed Description

Math worker functions.

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SwapBytes16.c.

Function Documentation

◆ SwapBytes16()

UINT16 EFIAPI SwapBytes16 ( IN UINT16  Value)

Switches the endianess of a 16-bit integer.

This function swaps the bytes in a 16-bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned.

Parameters
ValueA 16-bit unsigned value.
Returns
The byte swapped Value.

Definition at line 25 of file SwapBytes16.c.