Bitwise Operators... Faster?
Displaying 1-7 of 7 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
CrazyAznGamer

From recent inspection of Kildorf's Map... thingy (for lack of a better term), I noticed he uses
x>>1
instead of
x/2
.

...Is it there just for making people gape at it's complexity, or are bitwise operators actually faster than normal ones?

**EDIT**
OK, I gave it a test, and found out that they pretty much have the same speed.
May this knowledge lie dormant for ever on the internet and attract billions of particles of cyberdust.

Posted on 2005-06-09 21:08:02 (last edited on 2005-06-09 21:18:19)

Gayo

Normally, bitwise is faster. In VERGE, everything runs the same speed: Really Slow. People do it out of habit.

Posted on 2005-06-09 21:19:36

anonymous

I assure you, bitshifts are faster than multiplying and dividing. You just won't notice the difference unless you have an absurb number of them.

-basil

Posted on 2005-06-10 06:14:19

mcgrue

Basil, why do you hate logins? :(

Posted on 2005-06-10 08:11:52

Interference22

Quote:Originally posted by Unimportant NPC (Anonymous)

I assure you, bitshifts are faster than multiplying and dividing. You just won't notice the difference unless you have an absurb number of them.


So you're saying they're fairly redundant unless you're a masochistic psychopath.

Posted on 2005-06-10 18:07:28

basil

Sorry Grue. I am a bum.

Posted on 2005-06-10 20:11:03

Kildorf

Quote:Originally posted by Interference22

Quote:So you're saying they're fairly redundant unless you're a masochistic psychopath.
I'm not masochistic. :(

Posted on 2005-06-10 20:11:58


Displaying 1-7 of 7 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.