about summary refs log tree commit diff stats
path: root/miasm2/jitter/vm_mngr.h
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-01-09 17:28:01 +0100
committerAjax <commial@gmail.com>2017-01-09 17:28:01 +0100
commitccf94648a6f8d3634b8fa707f01fa9e33ad5043b (patch)
treee49f319ca48901fe107c92308175397fcf3f9230 /miasm2/jitter/vm_mngr.h
parent5a8bb06aa4f359b1091d0bc10e86524264b60c3d (diff)
downloadmiasm-ccf94648a6f8d3634b8fa707f01fa9e33ad5043b.tar.gz
miasm-ccf94648a6f8d3634b8fa707f01fa9e33ad5043b.zip
CC: declare parity as a macro to avoid function calls
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);