mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
[PATCH] x86-64: clean up local_add/sub arguments
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4b6a455c74
commit
2ade814736
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ static __inline__ void local_dec(local_t *v)
|
|||
:"m" (v->counter));
|
||||
}
|
||||
|
||||
static __inline__ void local_add(unsigned long i, local_t *v)
|
||||
static __inline__ void local_add(unsigned int i, local_t *v)
|
||||
{
|
||||
__asm__ __volatile__(
|
||||
"addl %1,%0"
|
||||
|
@ -37,7 +37,7 @@ static __inline__ void local_add(unsigned long i, local_t *v)
|
|||
:"ir" (i), "m" (v->counter));
|
||||
}
|
||||
|
||||
static __inline__ void local_sub(unsigned long i, local_t *v)
|
||||
static __inline__ void local_sub(unsigned int i, local_t *v)
|
||||
{
|
||||
__asm__ __volatile__(
|
||||
"subl %1,%0"
|
||||
|
|
Loading…
Reference in a new issue