Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
efficiency concern: when to really use unsigned ints and when not to
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="glen herrmannsfeldt, post: 1701156"] (snip regarding when to use unsigned integers) Despite what I am about to say, I agree 100% with these statements. (With the possible exception of modulo arithmetic not modulo a power of two.) Well, yes. Except that there are cases where size_t values might be between INT_MAX and UINT_MAX, which could cause problems. (Assuming that the implementation does it right for those values.) argc > INT_MAX should be pretty rare. (snip) Well, for multiply and divide they are different, and it isn't so easy to do unsigned divide using a signed divide operation. There are still machines around without unsigned multiply and divide. -- glen [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
efficiency concern: when to really use unsigned ints and when not to
Top