lkml.org 
[lkml]   [2014]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/20] arch,avr32: Fold atomic_ops
On Fri, May 09, 2014 at 10:43:09PM +0200, Peter Zijlstra wrote:
> On Fri, May 09, 2014 at 08:32:41PM +0200, Hans-Christian Egtvedt wrote:

> > > - if (__builtin_constant_p(i) && (i >= -1048575) && (i <= 1048576))
> > > - result = atomic_sub_return(-i, v);
> >
> > I do not recall why we did it like this any more, I would assume both sub and
> > add to be single cycle instructions.

Similarly, can I rip out atomic_sub_unless() ?


\
 
 \ /
  Last update: 2014-05-09 23:21    [W:0.056 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site