This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
types of new builtins
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Mon, 17 May 2004 10:42:19 +0200
- Subject: types of new builtins
Why do the (new) bit-op builtins have prototypes with signed parameters
instead of unsigned ones? Namely for clz, but to some degree also
popcount and parity, passing in negative values makes very little sense.
Interestingly, all these bit operation functions are documented to take
unsigned arguments (on Other-Builtins.html).
Thanks, Jan