about summary refs log tree commit diff stats
path: root/miasm2/jitter/vm_mngr.h
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2017-01-12 12:36:04 +0100
committerGitHub <noreply@github.com>2017-01-12 12:36:04 +0100
commit632f95b8ce745ef77ecb9f46054c1964ddc59e3e (patch)
treee49f319ca48901fe107c92308175397fcf3f9230 /miasm2/jitter/vm_mngr.h
parentedf8a67791cd7e3255cce048f2deb1bea436485c (diff)
parentccf94648a6f8d3634b8fa707f01fa9e33ad5043b (diff)
downloadmiasm-632f95b8ce745ef77ecb9f46054c1964ddc59e3e.tar.gz
miasm-632f95b8ce745ef77ecb9f46054c1964ddc59e3e.zip
Merge pull request #472 from commial/feature/faster-parity
Feature/faster parity
Diffstat (limited to '')
-rw-r--r--miasm2/jitter/vm_mngr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/jitter/vm_mngr.h b/miasm2/jitter/vm_mngr.h
index 88ecf34d..912b105e 100644
--- a/miasm2/jitter/vm_mngr.h
+++ b/miasm2/jitter/vm_mngr.h
@@ -193,8 +193,7 @@ int vm_write_mem(vm_mngr_t* vm_mngr, uint64_t addr, char *buffer, uint64_t size)
 #define CC_P 1
 
 extern const uint8_t parity_table[256];
-
-uint8_t parity(uint64_t a);
+#define parity(a) parity_table[(a) & 0xFF]
 
 unsigned int my_imul08(unsigned int a, unsigned int b);