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

Go to the source code of this file.

Functions

UINT32 EFIAPI SwapBytes32 (IN UINT32 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 SwapBytes32.c.

Function Documentation

◆ SwapBytes32()

UINT32 EFIAPI SwapBytes32 ( IN UINT32  Value)

Switches the endianess of a 32-bit integer.

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

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

Definition at line 25 of file SwapBytes32.c.