lkml.org 
[lkml]   [2007]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r
From
Date
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2007-08-23 22:43    [W:0.083 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site