summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/avr32
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-04-16 14:24:58 +0000
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2008-04-16 14:24:58 +0000
commit0b17d90591759fccd1dcb37247425064773a413b (patch)
tree6f70b9a25463ef3d5c5884a069189dccda89ec19 /libpthread/linuxthreads/sysdeps/avr32
parent1995bf637fd9d8e848b8b26d2ea305ff269374be (diff)
Fix whitespace damage in AVR32 pt-machine.h in libpthread, linuxthreads and linuxthreads.old.
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/avr32')
-rw-r--r--libpthread/linuxthreads/sysdeps/avr32/pt-machine.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h b/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h
index 903a7ed54..b93bc47f0 100644
--- a/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h
+++ b/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h
@@ -18,16 +18,16 @@
static inline int
_test_and_set (int *p, int v) __THROW
{
- int result;
+ int result;
- __asm__ __volatile__(
- "/* Inline test and set */\n"
- " xchg %[old], %[mem], %[new]"
- : [old] "=&r"(result)
- : [mem] "r"(p), [new] "r"(v)
- : "memory");
+ __asm__ __volatile__(
+ "/* Inline test and set */\n"
+ " xchg %[old], %[mem], %[new]"
+ : [old] "=&r"(result)
+ : [mem] "r"(p), [new] "r"(v)
+ : "memory");
- return result;
+ return result;
}
extern long int testandset (int *spinlock);
@@ -37,7 +37,7 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval);
PT_EI long int
testandset (int *spinlock)
{
- return _test_and_set(spinlock, 1);
+ return _test_and_set(spinlock, 1);
}
@@ -52,22 +52,22 @@ register char * stack_pointer __asm__ ("sp");
PT_EI int
__compare_and_swap(long int *p, long int oldval, long int newval)
{
- int result;
+ int result;
- __asm__ __volatile__(
- "/* Inline compare and swap */\n"
- "1: ssrf 5\n"
- " ld.w %[result], %[mem]\n"
- " eor %[result], %[old]\n"
- " brne 2f\n"
- " stcond %[mem], %[new]\n"
- " brne 1b\n"
- "2:"
- : [result] "=&r"(result), [mem] "=m"(*p)
- : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
- : "cc", "memory");
+ __asm__ __volatile__(
+ "/* Inline compare and swap */\n"
+ "1: ssrf 5\n"
+ " ld.w %[result], %[mem]\n"
+ " eor %[result], %[old]\n"
+ " brne 2f\n"
+ " stcond %[mem], %[new]\n"
+ " brne 1b\n"
+ "2:"
+ : [result] "=&r"(result), [mem] "=m"(*p)
+ : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
+ : "cc", "memory");
- return result == 0;
+ return result == 0;
}
#endif /* pt-machine.h */