types of new builtins

Jan Beulich JBeulich@novell.com
Mon May 17 08:41:00 GMT 2004


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



More information about the Gcc mailing list