This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]