mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
variable. Remove superfluous memory clobber. * include/atomic.h: Syntax braino fix. * posix/tst-nice.c (do_test): Use %m formats instead of printing errno in decimal. Don't bail if niced at start. Just check that nice call bumps the total at all.
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,14 @@
|
|||||||
|
2003-03-20 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
|
||||||
|
variable. Remove superfluous memory clobber.
|
||||||
|
|
||||||
|
* include/atomic.h: Syntax braino fix.
|
||||||
|
|
||||||
|
* posix/tst-nice.c (do_test): Use %m formats instead of printing errno
|
||||||
|
in decimal. Don't bail if niced at start. Just check that nice call
|
||||||
|
bumps the total at all.
|
||||||
|
|
||||||
2003-03-20 Alexandre Oliva <aoliva@redhat.com>
|
2003-03-20 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
|
* sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
|
||||||
|
@@ -112,7 +112,8 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Decrement *MEM if it is > 0, and return the old value. */
|
/* Decrement *MEM if it is > 0, and return the old value. */
|
||||||
#ifndef atomic_decrement_if_positive(mem) \
|
#ifndef atomic_decrement_if_positive
|
||||||
|
# define atomic_decrement_if_positive(mem) \
|
||||||
({ __typeof (*mem) __val; \
|
({ __typeof (*mem) __val; \
|
||||||
__typeof (*mem) __oldval; \
|
__typeof (*mem) __oldval; \
|
||||||
__typeof (mem) __memp; \
|
__typeof (mem) __memp; \
|
||||||
|
@@ -111,14 +111,14 @@ typedef uintmax_t uatomic_max_t;
|
|||||||
#define atomic_exchange(mem, value) \
|
#define atomic_exchange(mem, value) \
|
||||||
({ if (sizeof (*mem) != 4) \
|
({ if (sizeof (*mem) != 4) \
|
||||||
abort (); \
|
abort (); \
|
||||||
int __val, __tmp; \
|
int __val; \
|
||||||
__asm __volatile (__ARCH_REL_INSTR "\n" \
|
__asm __volatile (__ARCH_REL_INSTR "\n" \
|
||||||
"1: lwarx %0,0,%2\n" \
|
"1: lwarx %0,0,%2\n" \
|
||||||
" stwcx. %3,0,%2\n" \
|
" stwcx. %3,0,%2\n" \
|
||||||
" bne- 1b" \
|
" bne- 1b" \
|
||||||
: "=&r" (__val), "=m" (*mem) \
|
: "=&r" (__val), "=m" (*mem) \
|
||||||
: "r" (mem), "r" (value), "1" (*mem) \
|
: "r" (mem), "r" (value), "1" (*mem) \
|
||||||
: "cr0", "memory"); \
|
: "cr0"); \
|
||||||
__val; })
|
__val; })
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user