Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

level10boy

Another Performance Question

This topic is 6114 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Call me performance paranoid but do signed variables like (int) carry with them more overhead than unsigned variables like (unsigned int) at run-time, compile-time or both. Cheers, any replies.

Share this post


Link to post
Share on other sites
Advertisement
nope.

Processors support signed and unsigned instructions at the same time.

in fact, the addition and subtraction algorithms for both signed and unsigned integers is the same.

Share this post


Link to post
Share on other sites
In fact only a single signal from the CPU controler is different (off instead of on)(at least in the 8086).

If brute force does not solve your problem....you''re not using enough!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!