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

bugfixing the AVX2 Extract8+16 codes, where there's lines like [...] #4

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

GerHobbelt
Copy link

Tfloat patch 4: bugfixes for AVX2 FAST_FLOAT Extract8+16 implementations tesseract-ocr#3494

Extract from tesseract-ocr#3490 - bugfixing the AVX2 Extract8+16 codes, where there's lines like __m256d scale01234567 = _mm256_loadu_ps(scales), i.e. loading float vectors into double vector types. Extract from tesseract-ocr#3490.

Note: next pullreq is a reduced version of this: less code duplication for bleeding edge tfloat branch.


Note: tesseract-ocr#3495 is this one (tesseract-ocr#3494) PLUS FAST_FLOAT condition only applied to the ExtractXYZ calls, as the others are good to go with only their prototype adjusted from double --> TFloat. Hence tesseract-ocr#3495 is only moving code compared to this one, no code change. (I don't know what diff tools you use, but thus this one (tesseract-ocr#3494) would be easier to diff/review, and then verify that tesseract-ocr#3495 is only copy/cut/paste work, resulting in a much larger diff)


[Edit: here's how this one's diff looks over at my place with BeyondCompare as diff visualizer: at least for me, much easier to 'read' than github's webview:

image

image

@GerHobbelt
Copy link
Author

Will adjust this one to match #2 (comment) and formatting style as well.

…6d scale01234567 = _mm256_loadu_ps(scales)`, i.e. loading float vectors into double vector types. Extract from tesseract-ocr#3490.
@GerHobbelt
Copy link
Author

@stweil: code reformatted according to editor spec file.

@stweil stweil merged commit 4e3c112 into stweil:tfloat Jul 13, 2021
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