Re: [PATCH] x86: Change x86 to use generic find_next_bit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander van Heukelum
Date: Sunday, March 9, 2008 - 2:13 pm

On Sun, 9 Mar 2008 21:10:16 +0100, "Ingo Molnar" <mingo@elte.hu> said:

Hi,

BSF is fine, it doesn't need any special setup. The problem is probably
that the old versions use find_first_bit and find_first_zero_bit,
which are also hand optimized versions... and they use "repe scasl/q".
That's another little project ;).


Not surprised about the bug, but it was in fact noticed, and fixed
in x86_64!


Agreed.


I don't but I needed to compile something to test the build anyhow ;)


This was defconfig in -x86#testing, they were both already enabled. 
Here is what you get with those options turned off ;).

                   text    data     bss     dec     hex filename
x86-specific:   5543996  481232  626688 6651916  65800c vmlinux (32 bit)
generic:        5543880  481232  626688 6651800  657f98 vmlinux (32 bit)
x86-specific:   6111834  846568  724424 7682826  753b0a vmlinux (64 bit)
generic:        6111882  846568  724424 7682874  753b3a vmlinux (64 bit)

(and I double-checked the i386 results)


Thanks,
    Alexander

-- 
  Alexander van Heukelum
  heukelum@fastmail.fm

-- 
http://www.fastmail.fm - And now for something completely different…

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

Messages in current thread:
[PATCH] x86: Change x86 to use generic find_next_bit, Alexander van Heukelum, (Sun Mar 9, 1:01 pm)
Re: [PATCH] x86: Change x86 to use generic find_next_bit, Alexander van Heukelum, (Sun Mar 9, 1:31 pm)
Re: [PATCH] x86: Change x86 to use generic find_next_bit, Alexander van Heukelum, (Sun Mar 9, 2:13 pm)
[RFC/PATCH] x86: Optimize find_next_(zero_)bit for small c ..., Alexander van Heukelum, (Mon Mar 10, 4:17 pm)
[PATCH] x86: Optimize find_next_(zero_)bit for small const ..., Alexander van Heukelum, (Tue Mar 11, 8:17 am)
[RFC] non-x86: Optimize find_next_(zero_)bit for small con ..., Alexander van Heukelum, (Tue Mar 11, 8:22 am)
Re: [PATCH] x86: Change x86 to use generic find_next_bit, Aneesh Kumar K.V, (Thu Mar 13, 5:44 am)
Re: [PATCH] x86: Change x86 to use generic find_next_bit, Alexander van Heukelum, (Thu Mar 13, 7:27 am)