fix macro names & refactor
improve performance in bovw512k_nodb driver