Talk:Bitwise operations

From Rosetta Code

Shifts have now been added to the task. Please check your languages to make sure they have shifting properly implemented. --Mwn3d 17:11, 19 May 2008 (MDT)

assumption of how integers are stored

Since the task is more-or-less bit orientated, the assumption is that integers are stored in binary form (that is, bits).
This isn't the case for all languages, or for that matter, all computers.
There exist decimal computers (albet, no longer being built, but a few are still running). I don't mean computers that HANDLE decimal numbers, but RUN in decimal.
The REXX language stores all it's variables in character form. REXX does allow the programmer to "get to" the (actual) binary value of the characters (which may be a representation of an integer, or some other number), but the binary bits would be different on an ASCII machine vs. an EBCDIC machine. -- Gerard Schildberger 23:35, 22 March 2012 (UTC)