summaryrefslogtreecommitdiff
path: root/progs/a198.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a198.py')
-rw-r--r--progs/a198.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a198.py b/progs/a198.py
new file mode 100644
index 0000000..1cfd2a8
--- /dev/null
+++ b/progs/a198.py
@@ -0,0 +1,3 @@
+INT_BITS = 32
+def left_Rotate(n,d):
+ return (n << d)|(n >> (INT_BITS - d)) \ No newline at end of file