This commit is contained in:
chhylp123
2021-09-10 17:17:44 -04:00
parent 17b5cb21d3
commit 809ca18dda
18 changed files with 1569 additions and 1031 deletions
+16 -9
View File
@@ -7,19 +7,26 @@
#include "CommandLines.h"
#include "htab.h"
void uidx_build(ma_ug_t *ug, int hap_n)
void uidx_build(ma_ug_t *ug, int is_HPC, int k, int w, int hap_n)
{
int flag = asm_opt.flag;
asm_opt.flag |= HA_F_NO_HPC;
ha_flt_tab = ha_ft_ug_gen(&asm_opt, &(ug->u), hap_n);
ha_idx = ha_pt_ug_gen(&asm_opt, ha_flt_tab, &(ug->u), hap_n);
ug->u.h = hap_n;
ha_flt_tab = ha_ft_ug_gen(&asm_opt, &(ug->u), is_HPC, k, w, hap_n, hap_n*10);
ha_idx = ha_pt_ug_gen(&asm_opt, ha_flt_tab, &(ug->u), is_HPC, k, w, hap_n);
asm_opt.flag = flag;
}
void uidx_destory()
{
ha_ft_destroy(ha_flt_tab);
ha_pt_destroy(ha_idx);
}
void ul_resolve(ma_ug_t *ug, int hap_n)
{
uidx_build(ug, 1, 63, 63, hap_n);
uidx_destory();
}