lkml.org 
[lkml]   [2004]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: using gcc built-ins for bitops?
I see a list of these gcc bitop builtins at the bottom of the page:

http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html

Looks like you can find the position of the first 1 bit, the length of
the leading or trailing seq of 0 bits, the hamming weight (popcount) and
the parity, each for int, long and long long.

I just add this for the benefit of others.

As to your primary question - is this worth doing - I don't have
an answer.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.107 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site