提交 f29e834d 编写于 作者: R Rich Felker

remove size suffix in x86_64 __pthread_self asm

the operand size is unnecessary, since the assembler knows it from the
destination register size. removing the suffix makes it so the same
code should work for x32.
上级 7acbbdfd
static inline struct pthread *__pthread_self()
{
struct pthread *self;
__asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) );
__asm__ __volatile__ ("mov %%fs:0,%0" : "=r" (self) );
return self;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册