about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-07-21 22:27:07 +0200
committerAjax <commial@gmail.com>2017-07-24 10:30:09 +0200
commit2224ef897223e8900dc8a3671b39689b5a41a96a (patch)
treec78def590c3673fc2263e4922affce575c0e5806
parent5e8ccb58d4510fc53e556525421d5371d4e11aea (diff)
downloadmiasm-2224ef897223e8900dc8a3671b39689b5a41a96a.tar.gz
miasm-2224ef897223e8900dc8a3671b39689b5a41a96a.zip
Aarch64: remove useless code
Diffstat (limited to '')
-rw-r--r--miasm2/arch/aarch64/arch.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/miasm2/arch/aarch64/arch.py b/miasm2/arch/aarch64/arch.py
index 908499bf..09af57b1 100644
--- a/miasm2/arch/aarch64/arch.py
+++ b/miasm2/arch/aarch64/arch.py
@@ -1074,17 +1074,6 @@ def rol(value, amount, size):
     mask = (1 << size) - 1
     return ((value << amount) | (value >> (size - amount)) & mask)
 
-UINTS = {32: uint32, 64: uint64}
-
-
-def imm_to_imm_rot_form(value, size):
-    for i in xrange(0, size):
-        mod_value = int(rol(value, i, size))
-        if (mod_value + 1) & mod_value == 0:
-            return i
-    return None
-
-
 # This implementation is inspired from ARM ISA v8.2
 # Exact Reference name:
 # "ARM Architecture Reference Manual ARMv8, for ARMv8-A architecture profile"