Thread (1 message) 1 message, 1 author, 2007-08-23

Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r

From: <hidden>
Date: 2007-08-23 20:41:41
Also in: lkml

On Thu, 23 Aug 2007 21:29:41 +0200, Segher Boessenkool said:
int f(atomic_t *x)
{
        return atomic_read(x) + atomic_read(x);
}
         ld r0,@r0
         slli r0,#1
         jmp lr
Looks like peephole optimization at work.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help