lkml.org 
[lkml]   [2011]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 13/15] x86: add cmpxchg_flag() variant
On 08/23/2011 03:15 PM, Jeremy Fitzhardinge wrote:
>
> However, having prototyped it, I dunno, it doesn't really seem like much
> of a win for all the extra code it adds. I just can't get too excited
> about an extra test instruction adjacent to a monster like a locked
> cmpxchg. The jump variant avoids the test, but gcc still generates some
> pretty bogus stuff:
>

A compare is hardly a big cost, as you're quite correctly pointing out.

-hpa



\
 
 \ /
  Last update: 2011-08-24 00:47    [W:0.138 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site