Re: [PATCH] x86: merge the simple bitops and move them to bitops.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander van Heukelum
Date: Saturday, March 15, 2008 - 10:54 am

On Fri, 14 Mar 2008 23:18:45 +0100, "Andi Kleen" <andi@firstfloor.org>
said:

Hi Andi,

It's unsigned long __fls(unsigned long)... and this is only compiled
if unsigned long is as long as u64. Seems fine to me. Moreover, it
is _exactly_ how it is done in x86_64 now. I must be missing something.


Good to know. And I realized that there is also the machines without
a hardware multiply instruction at all. So you are right. i386/x86_64
should just unconditionally set ARCH_HAS_FAST_MULTIPLIER.


That is true, of course. But then the name of the function should
give a hint that it is optimized for short sequences.

Greetings,
    Alexander
-- 
  Alexander van Heukelum
  heukelum@fastmail.fm

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: merge the simple bitops and move them to bitops.h, Alexander van Heukelum, (Wed Mar 12, 1:01 pm)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Jeremy Fitzhardinge, (Fri Mar 14, 11:07 am)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Alexander van Heukelum, (Fri Mar 14, 12:43 pm)
[PATCH v2] x86: merge the simple bitops and move them to b ..., Alexander van Heukelum, (Fri Mar 14, 1:35 pm)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Jeremy Fitzhardinge, (Fri Mar 14, 2:15 pm)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Alexander van Heukelum, (Fri Mar 14, 2:33 pm)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Alexander van Heukelum, (Fri Mar 14, 3:01 pm)
[PATCH v3] x86: merge the simple bitops and move them to b ..., Alexander van Heukelum, (Sat Mar 15, 5:04 am)
Re: [PATCH] x86: merge the simple bitops and move them to ..., Alexander van Heukelum, (Sat Mar 15, 10:54 am)
K8, EFFICEON and CORE2 support the cmovxx instructions., Alexander van Heukelum, (Sat Mar 15, 12:19 pm)
Re: K8, EFFICEON and CORE2 support the cmovxx instructions., Alexander van Heukelum, (Sat Mar 15, 2:06 pm)
[PATCH] x86: K8, GEODE_LX, CRUSOE, EFFICEON and CORE2 supp ..., Alexander van Heukelum, (Sun Mar 16, 6:16 am)