Skip to content
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

AVX instructions for x64 #33

Open
postspectacular opened this issue May 28, 2016 · 1 comment
Open

AVX instructions for x64 #33

postspectacular opened this issue May 28, 2016 · 1 comment

Comments

@postspectacular
Copy link

Hi James, I've been studying and successfully building the x64 version on OSX, but then realised that the code contains a few AVX instruction not supported on slightly older machines (e.g. my 2010 MBP i7 lacks AVX). Are these really needed or could they be conditionally be rewritten using only SSE2/3/4? I'll do some digging what these instruction exactly achieve and might create a PR (if I'm successful), but any guidance would be appreciated. Thanks!

@jamesbowman
Copy link
Owner

Aha, yes. If you do create a pull request would be appreciated. These instructions are all doing word matching in the dictionary inner loop. There is also some AVX instructions to do case-folding, so that the comparison is case-insentive.

Multiple SSE4 instructions could do that same work, I think.

Thanks! J.

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

No branches or pull requests

2 participants