• Advertisement

Archived

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

highbit

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