8000 export `t1ha0_resolve` when `t1ha0_funcptr` not available by flier · Pull Request #25 · erthink/t1ha · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

export t1ha0_resolve when t1ha0_funcptr not available #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

flier
Copy link
Contributor
@flier flier commented Aug 6, 2018

When compatibility issue occurred, we can use t1ha0_resolve to solve the function pointer instead of Symbol not found: _t1ha0_funcptr. flier/pyfasthash#25

template <>
const t1ha0_t::hash_value_t t1ha0_t::operator()(void *buf, size_t len, t1ha0_t::seed_value_t seed) const
{
    static auto t1ha0_funcptr = t1ha0_resolve();

    return t1ha0_funcptr(buf, len, seed);
}

erthink pushed a commit that referenced this pull request Aug 8, 2018
@erthink erthink closed this Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0