MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -24,7 +24,7 @@
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
ArmRndr (
|
||||
OUT UINT64 *Rand
|
||||
OUT UINT64 *Rand
|
||||
);
|
||||
|
||||
/**
|
||||
|
@@ -17,12 +17,12 @@
|
||||
#include "ArmRng.h"
|
||||
#include "BaseRngLibInternals.h"
|
||||
|
||||
STATIC BOOLEAN mRndrSupported;
|
||||
STATIC BOOLEAN mRndrSupported;
|
||||
|
||||
//
|
||||
// Bit mask used to determine if RNDR instruction is supported.
|
||||
//
|
||||
#define RNDR_MASK ((UINT64)MAX_UINT16 << 60U)
|
||||
#define RNDR_MASK ((UINT64)MAX_UINT16 << 60U)
|
||||
|
||||
/**
|
||||
The constructor function checks whether or not RNDR instruction is supported
|
||||
@@ -41,7 +41,8 @@ BaseRngLibConstructor (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
UINT64 Isar0;
|
||||
UINT64 Isar0;
|
||||
|
||||
//
|
||||
// Determine RNDR support by examining bits 63:60 of the ISAR0 register returned by
|
||||
// MSR. A non-zero value indicates that the processor supports the RNDR instruction.
|
||||
@@ -66,10 +67,10 @@ BaseRngLibConstructor (
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
ArchGetRandomNumber16 (
|
||||
OUT UINT16 *Rand
|
||||
OUT UINT16 *Rand
|
||||
)
|
||||
{
|
||||
UINT64 Rand64;
|
||||
UINT64 Rand64;
|
||||
|
||||
if (ArchGetRandomNumber64 (&Rand64)) {
|
||||
*Rand = Rand64 & MAX_UINT16;
|
||||
@@ -91,10 +92,10 @@ ArchGetRandomNumber16 (
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
ArchGetRandomNumber32 (
|
||||
OUT UINT32 *Rand
|
||||
OUT UINT32 *Rand
|
||||
)
|
||||
{
|
||||
UINT64 Rand64;
|
||||
UINT64 Rand64;
|
||||
|
||||
if (ArchGetRandomNumber64 (&Rand64)) {
|
||||
*Rand = Rand64 & MAX_UINT32;
|
||||
@@ -116,7 +117,7 @@ ArchGetRandomNumber32 (
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
ArchGetRandomNumber64 (
|
||||
OUT UINT64 *Rand
|
||||
OUT UINT64 *Rand
|
||||
)
|
||||
{
|
||||
return ArmRndr (Rand);
|
||||
|
Reference in New Issue
Block a user