Add a generic hash table algorithm. Reuse for declared_reg_table and label_table...
authorHomer Hsing <homer.xing@intel.com>
Tue, 18 Sep 2012 08:32:39 +0000 (16:32 +0800)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:32 +0000 (15:54 +0000)
commit868cbf7dc56d96dce1463cd9288730ece7ee9e9b
treef6557f8eaded1c566b8f889644349c5d391e92dd
parent131f61f2ef2ecac4f0e4cb207a58449f36abfa36
Add a generic hash table algorithm. Reuse for declared_reg_table and label_table in the future.

Rewrite find_register() and insert_register(). The hash table code
has been extracted. We may use those code for label table in the future.
assembler/src/gen4asm.h
assembler/src/main.c