Bitwise operations: Difference between revisions
Content added Content deleted
m (→{{header|PL/I}}: missing comment delimiters) |
|||
Line 4,416: | Line 4,416: | ||
u = s ^ t; /* exclusive or */ |
u = s ^ t; /* exclusive or */ |
||
Built-in rotate functions are not available. |
/* Built-in rotate functions are not available. */ |
||
They can be readily implemented by the user, though: |
/* They can be readily implemented by the user, though: */ |
||
u = substr(s, length(s), 1) || substr(s, 1, length(s)-1); /* implements rotate right. */ |
u = substr(s, length(s), 1) || substr(s, 1, length(s)-1); /* implements rotate right. */ |