diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 21:36:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 21:36:14 (GMT) |
commit | d50544a3de540727137f2b13010ca4450f8ea10f (patch) | |
tree | 05e4ad65c25570016d5732f425a9eff2f4117d34 /src/arch/register-int.h | |
parent | b0bcf250999b2242019f137e38f52390a86e71cd (diff) |
Used a fast sorted array to track shared instances instead of a simple hash table.
Diffstat (limited to 'src/arch/register-int.h')
-rw-r--r-- | src/arch/register-int.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/register-int.h b/src/arch/register-int.h index 72c1f84..4f85544 100644 --- a/src/arch/register-int.h +++ b/src/arch/register-int.h @@ -40,7 +40,7 @@ typedef guint (* reg_hash_fc) (const GArchRegister *); /* Compare un registre avec un autre. */ -typedef int (* reg_compare_fc) (const GArchRegister *, const GArchRegister *); +typedef int (* reg_compare_fc) (const GArchRegister * const *, const GArchRegister * const *); /* Traduit un registre en version humainement lisible. */ typedef void (* reg_print_fc) (const GArchRegister *, GBufferLine *, AsmSyntax); @@ -69,7 +69,6 @@ struct _GArchRegisterClass GObjectClass parent; /* A laisser en premier */ init_shared_fc init; /* Mise en place via interface */ - compare_shared_info_fc cmp_info; /* Comparaison des détails */ reg_hash_fc hash; /* Production d'empreinte */ reg_compare_fc compare; /* Comparaison de registres */ |