common/util_stdlib.c: Format with clang-format
BRANCH=none
TEST=none
@@ -134,8 +134,7 @@ __stdlib_compat int atoi(const char *nptr)
return neg ? -result : result;
}
-__keep
-__stdlib_compat int memcmp(const void *s1, const void *s2, size_t len)
+__keep __stdlib_compat int memcmp(const void *s1, const void *s2, size_t len)
{
const char *sa = s1;
const char *sb = s2;
@@ -151,8 +150,7 @@ __stdlib_compat int memcmp(const void *s1, const void *s2, size_t len)
}
#if !(__has_feature(address_sanitizer) || __has_feature(memory_sanitizer))
-__keep
-__stdlib_compat void *memcpy(void *dest, const void *src, size_t len)
+__keep __stdlib_compat void *memcpy(void *dest, const void *src, size_t len)
{
char *d = (char *)dest;
const char *s = (const char *)src;
@@ -197,8 +195,7 @@ __stdlib_compat void *memcpy(void *dest, const void *src, size_t len)
#endif /* address_sanitizer || memory_sanitizer */
#if !(__has_feature(address_sanitizer) || __has_feature(memory_sanitizer))
-__keep
-__stdlib_compat __visible void *memset(void *dest, int c, size_t len)
+__keep __stdlib_compat __visible void *memset(void *dest, int c, size_t len)
{
char *d = (char *)dest;
uint32_t cccc;
@@ -237,8 +234,7 @@ __stdlib_compat __visible void *memset(void *dest, int c, size_t len)
#endif /* address_sanitizer || memory_sanitizer */
#if !(__has_feature(address_sanitizer) || __has_feature(memory_sanitizer))
-__keep
-__stdlib_compat void *memmove(void *dest, const void *src, size_t len)
+__keep __stdlib_compat void *memmove(void *dest, const void *src, size_t len)
{
if ((uintptr_t)dest <= (uintptr_t)src ||
(uintptr_t)dest >= (uintptr_t)src + len) {
@@ -326,7 +322,6 @@ __stdlib_compat int strncmp(const char *s1, const char *s2, size_t n)
break;
s1++;
s2++;
-
}
return 0;
}
