summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Library/SafeIntLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Library/SafeIntLib.h')
-rw-r--r--MdePkg/Include/Library/SafeIntLib.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/MdePkg/Include/Library/SafeIntLib.h b/MdePkg/Include/Library/SafeIntLib.h
index 6b49e1d0e4..d0ac9e8504 100644
--- a/MdePkg/Include/Library/SafeIntLib.h
+++ b/MdePkg/Include/Library/SafeIntLib.h
@@ -8,6 +8,7 @@
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
+
#ifndef __INT_SAFE_LIB_H__
#define __INT_SAFE_LIB_H__
@@ -40,14 +41,14 @@
#define SafeIntnToChar16 SafeIntnToUint16
#define SafeUintnToChar16 SafeUintnToUint16
-#define SafeChar16ToInt8 SafeUint16ToInt8
-#define SafeChar16ToUint8 SafeUint16ToUint8
-#define SafeChar16ToChar8 SafeUint16ToChar8
-#define SafeChar16ToInt16 SafeUint16ToInt16
+#define SafeChar16ToInt8 SafeUint16ToInt8
+#define SafeChar16ToUint8 SafeUint16ToUint8
+#define SafeChar16ToChar8 SafeUint16ToChar8
+#define SafeChar16ToInt16 SafeUint16ToInt16
-#define SafeChar16Mult SafeUint16Mult
-#define SafeChar16Sub SafeUint16Sub
-#define SafeChar16Add SafeUint16Add
+#define SafeChar16Mult SafeUint16Mult
+#define SafeChar16Sub SafeUint16Sub
+#define SafeChar16Add SafeUint16Add
//
// Conversion functions
@@ -357,8 +358,8 @@ SafeInt16ToChar8 (
RETURN_STATUS
EFIAPI
SafeInt16ToUint8 (
- IN INT16 Operand,
- OUT UINT8 *Result
+ IN INT16 Operand,
+ OUT UINT8 *Result
);
/**
@@ -546,8 +547,8 @@ SafeUint16ToChar8 (
RETURN_STATUS
EFIAPI
SafeUint16ToUint8 (
- IN UINT16 Operand,
- OUT UINT8 *Result
+ IN UINT16 Operand,
+ OUT UINT8 *Result
);
/**
@@ -654,8 +655,8 @@ SafeInt32ToChar8 (
RETURN_STATUS
EFIAPI
SafeInt32ToUint8 (
- IN INT32 Operand,
- OUT UINT8 *Result
+ IN INT32 Operand,
+ OUT UINT8 *Result
);
/**
@@ -712,7 +713,6 @@ SafeInt32ToUint16 (
OUT UINT16 *Result
);
-
/**
INT32 -> UINT32 conversion
@@ -871,8 +871,8 @@ SafeUint32ToChar8 (
RETURN_STATUS
EFIAPI
SafeUint32ToUint8 (
- IN UINT32 Operand,
- OUT UINT8 *Result
+ IN UINT32 Operand,
+ OUT UINT8 *Result
);
/**
@@ -1060,8 +1060,8 @@ SafeIntnToChar8 (
RETURN_STATUS
EFIAPI
SafeIntnToUint8 (
- IN INTN Operand,
- OUT UINT8 *Result
+ IN INTN Operand,
+ OUT UINT8 *Result
);
/**
@@ -1303,8 +1303,8 @@ SafeUintnToChar8 (
RETURN_STATUS
EFIAPI
SafeUintnToUint8 (
- IN UINTN Operand,
- OUT UINT8 *Result
+ IN UINTN Operand,
+ OUT UINT8 *Result
);
/**