Advertisement Jump to content

Archived

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

gone

highbit

This topic is 6328 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

Does anyone know how to get the highbit of an integer in C++? Edited by - gone on September 20, 2001 1:36:11 AM

Share this post


Link to post
Share on other sites
Advertisement
If I think I know what you mean

for 32 bit numbers (num & 0x80000000)
or (num >> 31)

there should be other ways too.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!