diff options
| author | Camille Mougey <commial@gmail.com> | 2018-02-14 12:13:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-14 12:13:24 +0100 |
| commit | dcfadb31685d428618b88f19fcc96dd70cecfc8f (patch) | |
| tree | 038c6c2f545d5a77ecb6c68f030107f09d32450f /miasm2/jitter/vm_mngr.h | |
| parent | b0e9f5da9b4546a22169882e656bf2776eab9754 (diff) | |
| parent | 6702a6149c57c54bcece3fb1cd00b8c09af6e74a (diff) | |
| download | focaccia-miasm-dcfadb31685d428618b88f19fcc96dd70cecfc8f.tar.gz focaccia-miasm-dcfadb31685d428618b88f19fcc96dd70cecfc8f.zip | |
Merge pull request #678 from serpilliere/x86_fix_rcl
X86 fix rcl
Diffstat (limited to 'miasm2/jitter/vm_mngr.h')
| -rw-r--r-- | miasm2/jitter/vm_mngr.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/miasm2/jitter/vm_mngr.h b/miasm2/jitter/vm_mngr.h index 757c3b3e..71ecc246 100644 --- a/miasm2/jitter/vm_mngr.h +++ b/miasm2/jitter/vm_mngr.h @@ -216,8 +216,6 @@ unsigned int umul16_hi(unsigned short a, unsigned short b); uint64_t rot_left(uint64_t size, uint64_t a, uint64_t b); uint64_t rot_right(uint64_t size, uint64_t a, uint64_t b); -unsigned int rcl_rez_op(unsigned int size, unsigned int a, unsigned int b, unsigned int cf); -unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsigned int cf); #define UDIV(sizeA) \ @@ -226,7 +224,7 @@ unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsig uint ## sizeA ## _t r; \ if (b == 0) { \ fprintf(stderr, "Should not happen\n"); \ - exit(0); \ + exit(EXIT_FAILURE); \ } \ r = a/b; \ return r; \ @@ -239,7 +237,7 @@ unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsig uint ## sizeA ## _t r; \ if (b == 0) { \ fprintf(stderr, "Should not happen\n"); \ - exit(0); \ + exit(EXIT_FAILURE); \ } \ r = a%b; \ return r; \ @@ -252,7 +250,7 @@ unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsig int ## sizeA ## _t r; \ if (b == 0) { \ fprintf(stderr, "Should not happen\n"); \ - exit(0); \ + exit(EXIT_FAILURE); \ } \ r = a/b; \ return r; \ @@ -265,7 +263,7 @@ unsigned int rcr_rez_op(unsigned int size, unsigned int a, unsigned int b, unsig int ## sizeA ## _t r; \ if (b == 0) { \ fprintf(stderr, "Should not happen\n"); \ - exit(0); \ + exit(EXIT_FAILURE); \ } \ r = a%b; \ return r; \ |