lkml.org 
[lkml]   [2008]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: generic versions of find_first_(zero_)bit, convert i386

* dean gaudet <dean@arctic.org> wrote:

> On Sun, 6 Apr 2008, Alexander van Heukelum wrote:
>
> > The current generic implementation of ffz is O(lg(n)) already
>
> it's O(lg(n)) time... the operations all depend on each other.
>
> the implementation i pointed to is O(lg(n)) code space... and the time
> depends on how parallel the machine is, they're not dependent on each
> other.

yep, i'd suggest we gravitate towards such a no-dependencies
implementation for the generic code - especially modern CPUs would be
able to execute them rather efficiently.

Ingo


\
 
 \ /
  Last update: 2008-04-07 10:47    [W:0.090 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site