summaryrefslogtreecommitdiffstats
path: root/liba52/a52_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'liba52/a52_internal.h')
-rw-r--r--liba52/a52_internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/liba52/a52_internal.h b/liba52/a52_internal.h
index 428bbd1a2a..91fc54a300 100644
--- a/liba52/a52_internal.h
+++ b/liba52/a52_internal.h
@@ -41,6 +41,20 @@
#define DELTA_BIT_NONE (2)
#define DELTA_BIT_RESERVED (3)
+#ifdef ARCH_X86_64
+# define REG_a "rax"
+# define REG_d "rdx"
+# define REG_S "rsi"
+# define REG_D "rdi"
+# define REG_BP "rbp"
+#else
+# define REG_a "eax"
+# define REG_d "edx"
+# define REG_S "esi"
+# define REG_D "edi"
+# define REG_BP "ebp"
+#endif
+
void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart,
int start, int end, int fastleak, int slowleak,
uint8_t * exp, int8_t * bap);