lkml.org 
[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] x86: merge the simple bitops and move them to bitops.h

* Alexander van Heukelum <heukelum@mailshack.com> wrote:

> x86: merge the simple bitops and move them to bitops.h.
>
> Some of those can be written in such a way that the same inline
> assembly can be used to generate both 32 bit and 64 bit code.
>
> For ffs and fls, x86_64 unconditionally used the cmov instruction and
> i386 unconditionally used a conditional branch over a mov instruction.
> In the current patch I chose to select the version based on the
> availability of the cmov instruction instead. A small detail here is
> that x86_64 did not previously set CONFIG_X86_CMOV=y.
>
> Improved comments for ffs, ffz, fls and variations.

thanks Alexander, applied.

Ingo


\
 
 \ /
  Last update: 2008-03-21 13:39    [W:1.612 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site