4 ms·
I always wondered if the PDP-11 (which c was originally developed on) was missing rotate instructions. Weirdly enough, it does have rotate instructions. Even w
by phire 8y ago
I always wondered if the PDP-11 (which c was originally developed on) was missing rotate instructions.
Weirdly enough, it does have rotate instructions. Even weirder, there is no logical shift right instruction on the PDP-11. The original c compiler must have been emulating one by clearing the carry bit beteen rotates.
- pklausler 8y agoC came from B, which predated the PDP-11. https://www.bell-labs.com/usr/dmr/www/chist.html https://www.bell-labs.com/usr/dmr/www/chist.html