]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / IntrinsicLib / MemoryIntrinsics.c
index 94fe341bec9d1dceade0fa0acb643afa67fce7df..611e9fd773b0803f3b87282516176d2926ac5265 100644 (file)
@@ -11,20 +11,25 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/BaseLib.h>\r
 \r
-typedef UINTN  size_t;\r
+typedef UINTN size_t;\r
 \r
-#if defined(__GNUC__) || defined(__clang__)\r
-  #define GLOBAL_USED __attribute__((used))\r
+#if defined (__GNUC__) || defined (__clang__)\r
+#define GLOBAL_USED  __attribute__((used))\r
 #else\r
-  #define GLOBAL_USED\r
+#define GLOBAL_USED\r
 #endif\r
 \r
 /* OpenSSL will use floating point support, and C compiler produces the _fltused\r
    symbol by default. Simply define this symbol here to satisfy the linker. */\r
-int  GLOBAL_USED _fltused = 1;\r
+int  GLOBAL_USED  _fltused = 1;\r
 \r
 /* Sets buffers to a specified character */\r
-void * memset (void *dest, int ch, size_t count)\r
+void *\r
+memset (\r
+  void    *dest,\r
+  int     ch,\r
+  size_t  count\r
+  )\r
 {\r
   //\r
   // NOTE: Here we use one base implementation for memset, instead of the direct\r
@@ -49,12 +54,21 @@ void * memset (void *dest, int ch, size_t count)
 }\r
 \r
 /* Compare bytes in two buffers. */\r
-int memcmp (const void *buf1, const void *buf2, size_t count)\r
+int\r
+memcmp (\r
+  const void  *buf1,\r
+  const void  *buf2,\r
+  size_t      count\r
+  )\r
 {\r
-  return (int)CompareMem(buf1, buf2, count);\r
+  return (int)CompareMem (buf1, buf2, count);\r
 }\r
 \r
-int strcmp (const char *s1, const char *s2)\r
+int\r
+strcmp (\r
+  const char  *s1,\r
+  const char  *s2\r
+  )\r
 {\r
-  return (int)AsciiStrCmp(s1, s2);\r
+  return (int)AsciiStrCmp (s1, s2);\r
 }\r