mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-01 20:28:12 +08:00
backup for spsc
This commit is contained in:
@@ -179,6 +179,13 @@ int mm_set_opt(const char *preset, mm_idxopt_t *io, mm_mapopt_t *mo)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mm_max_spsc_bonus(const mm_mapopt_t *mo)
|
||||
{
|
||||
int max_sc = (mo->q2 + 1) / 2 - 1;
|
||||
max_sc = max_sc > mo->q2 - mo->q? max_sc : mo->q2 - mo->q;
|
||||
return max_sc;
|
||||
}
|
||||
|
||||
int mm_check_opt(const mm_idxopt_t *io, const mm_mapopt_t *mo)
|
||||
{
|
||||
if (mo->bw > mo->bw_long) {
|
||||
|
||||
Reference in New Issue
Block a user