Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -3,8 +3,8 @@ k = iand(i,j);
|
|||
k = ior(i,j);
|
||||
k = inot(i,j);
|
||||
k = ieor(i,j);
|
||||
k = ishl(i,n); /* unsigned shifts i left by n places. */
|
||||
k = ishr(i,n); /* unsigned shifts i right by n places. */
|
||||
k = isll(i,n); /* unsigned shifts i left by n places. */
|
||||
k = isrl(i,n); /* unsigned shifts i right by n places. */
|
||||
k = lower2(i, n); /* arithmetic right shift i by n places. */
|
||||
k = raise2(i, n); /* arithmetic left shift i by n places. */
|
||||
|
||||
|
|
@ -17,3 +17,9 @@ u = s & t; /* logical and */
|
|||
u = s | t; /* logical or */
|
||||
u = ^ s; /* logical not */
|
||||
u = s ^ t; /* exclusive or */
|
||||
|
||||
Built-in rotate functions are not available.
|
||||
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, 2) || substr(s, 1, 1); /* implements rotate left. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue