[libc-commits] [libc] a8cb0cf - [libc][NFC] clang-format syscall.h.in

Alex Brachet via libc-commits libc-commits at lists.llvm.org
Thu Feb 13 11:03:11 PST 2020


Author: Alex Brachet
Date: 2020-02-13T14:02:20-05:00
New Revision: a8cb0cf500ef0be4e46fafd45a327873a04a098f

URL: https://github.com/llvm/llvm-project/commit/a8cb0cf500ef0be4e46fafd45a327873a04a098f
DIFF: https://github.com/llvm/llvm-project/commit/a8cb0cf500ef0be4e46fafd45a327873a04a098f.diff

LOG: [libc][NFC] clang-format syscall.h.in

Reviewers: sivachandra

Reviewed By: sivachandra

Subscribers: MaskRay, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D74570

Added: 
    

Modified: 
    libc/config/linux/x86_64/syscall.h.inc

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/x86_64/syscall.h.inc b/libc/config/linux/x86_64/syscall.h.inc
index 33f211ca1999..4659aa09a480 100644
--- a/libc/config/linux/x86_64/syscall.h.inc
+++ b/libc/config/linux/x86_64/syscall.h.inc
@@ -16,79 +16,81 @@ namespace __llvm_libc {
 
 __attribute__((always_inline)) inline long syscall(long __number) {
   long retcode;
-  LIBC_INLINE_ASM("syscall" :
-             "=a"(retcode) :
-             "a"(__number) :
-             SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
 __attribute__((always_inline)) inline long syscall(long __number, long __arg1) {
   long retcode;
-  LIBC_INLINE_ASM("syscall" :
-             "=a"(retcode) :
-             "a"(__number), "D"(__arg1) :
-             SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
-__attribute__((always_inline)) inline long syscall(
-    long __number, long __arg1, long __arg2) {
+__attribute__((always_inline)) inline long syscall(long __number, long __arg1,
+                                                   long __arg2) {
   long retcode;
-  LIBC_INLINE_ASM("syscall" :
-             "=a"(retcode) :
-             "a"(__number), "D"(__arg1), "S"(__arg2) :
-             SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1), "S"(__arg2)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
-__attribute__((always_inline)) inline long syscall(
-    long __number, long __arg1, long __arg2, long __arg3) {
+__attribute__((always_inline)) inline long syscall(long __number, long __arg1,
+                                                   long __arg2, long __arg3) {
   long retcode;
-  LIBC_INLINE_ASM("syscall" :
-             "=a"(retcode) :
-             "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3) :
-             SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
-__attribute__((always_inline)) inline long syscall(
-    long __number, long __arg1, long __arg2, long __arg3, long __arg4) {
+__attribute__((always_inline)) inline long
+syscall(long __number, long __arg1, long __arg2, long __arg3, long __arg4) {
   long retcode;
   register long r10 __asm__("r10") = __arg4;
-  LIBC_INLINE_ASM("syscall" :
-             "=a"(retcode) :
-             "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3), "r"(r10) :
-             SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3),
+                    "r"(r10)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
-__attribute__((always_inline)) inline long syscall(
-    long __number, long __arg1, long __arg2, long __arg3, long __arg4,
-    long __arg5) {
+__attribute__((always_inline)) inline long syscall(long __number, long __arg1,
+                                                   long __arg2, long __arg3,
+                                                   long __arg4, long __arg5) {
   long retcode;
   register long r10 __asm__("r10") = __arg4;
   register long r8 __asm__("r8") = __arg5;
-  LIBC_INLINE_ASM(
-      "syscall" :
-      "=a"(retcode) :
-      "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3), "r"(r10), "r"(r8) :
-      SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3),
+                    "r"(r10), "r"(r8)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 
-__attribute__((always_inline)) inline long syscall(
-    long __number, long __arg1, long __arg2, long __arg3, long __arg4,
-    long __arg5, long __arg6) {
+__attribute__((always_inline)) inline long syscall(long __number, long __arg1,
+                                                   long __arg2, long __arg3,
+                                                   long __arg4, long __arg5,
+                                                   long __arg6) {
   long retcode;
   register long r10 __asm__("r10") = __arg4;
   register long r8 __asm__("r8") = __arg5;
   register long r9 __asm__("r9") = __arg6;
-  LIBC_INLINE_ASM(
-      "syscall" :
-      "=a"(retcode) :
-      "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3), "r"(r10), "r"(r8), "r"(r9) :
-      SYSCALL_CLOBBER_LIST);
+  LIBC_INLINE_ASM("syscall"
+                  : "=a"(retcode)
+                  : "a"(__number), "D"(__arg1), "S"(__arg2), "d"(__arg3),
+                    "r"(r10), "r"(r8), "r"(r9)
+                  : SYSCALL_CLOBBER_LIST);
   return retcode;
 }
 


        


More information about the libc-commits mailing list