Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bitwise operation

Name: Anonymous 2010-06-09 5:28

How are simple operations like adding and subtraction represented using only bitwise operators such as &, |, ^, >>, ~, and <<?

Also, do each of the bitwise operators perform at the same rate, or are some faster than others?

Name: Anonymous 2010-06-09 11:50

>>14
Perhaps, Austin Powers: smooth operator.
>>16
It should be printing a ETX char for "1" ^ "2", not sure why you are getting a ".  I'm pretty sure it performs the operator the ascii values, i.e.

$ php -r 'echo "yO-ZZV"^"V?_5=y","\n";'
/prog/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List