Raised This Month: $ Target: $400
 0% 

[question] array of booleans or integer?(optimization)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-15-2010 , 19:48   Re: [question] array of booleans or integer?(optimization)
Reply With Quote #5

Quote:
Originally Posted by ARES[ro] View Post
Well yeah i have macros too ^^
PHP Code:
#define getBit(%1,%2)    (%1 & 1 << (%2 & 31)) 
and love the way u put it more thanks
I think where yours is wrong is the that it should be "%2 % 31". Bugsy, correct me if I'm wrong.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode