Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 10:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Bitoperation // Zweierpotenz

Discussion on Bitoperation // Zweierpotenz within the C/C++ forum part of the Coders Den category.

Reply
 
Old 03/26/2014, 06:33   #16
 
nerdsupreme's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 103
Received Thanks: 55
Quote:
int bitcheck(unsigned int z){if(z)for(int c=0;;++c)if(z&(-1<<c)^z)return(c-1);return 32;}
funktioniert. easy.
nerdsupreme is offline  
Reply




All times are GMT +1. The time now is 10:29.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.