提交 8bbc3be4 编写于 作者: R Rich Felker

make arm syscalls (still non-inline) more efficient

no need to pass zero for unused arguments; just omit them.
上级 a3bdcd93
......@@ -7,32 +7,32 @@ long (__syscall)(long, ...);
static inline long __syscall0(long n)
{
return (__syscall)(n, 0, 0, 0, 0, 0, 0);
return (__syscall)(n);
}
static inline long __syscall1(long n, long a)
{
return (__syscall)(n, a, 0, 0, 0, 0, 0);
return (__syscall)(n, a);
}
static inline long __syscall2(long n, long a, long b)
{
return (__syscall)(n, a, b, 0, 0, 0, 0);
return (__syscall)(n, a, b);
}
static inline long __syscall3(long n, long a, long b, long c)
{
return (__syscall)(n, a, b, c, 0, 0, 0);
return (__syscall)(n, a, b, c);
}
static inline long __syscall4(long n, long a, long b, long c, long d)
{
return (__syscall)(n, a, b, c, d, 0, 0);
return (__syscall)(n, a, b, c, d);
}
static inline long __syscall5(long n, long a, long b, long c, long d, long e)
{
return (__syscall)(n, a, b, c, d, e, 0);
return (__syscall)(n, a, b, c, d, e);
}
static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册