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

extracted from 3490: implements DotProductSSE() for FAST_FLOAT #3

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

GerHobbelt
Copy link

Tfloat patch 3: implements DotProductSSE() for FAST_FLOAT tesseract-ocr#3493

extract from tesseract-ocr#3490. Tested to produce the correct numbers in the benchmark mentioned in tesseract-ocr#3486

total += u[k] * v[k];
}
return total;
int max_offset = n - 4;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use spaces for indentation as in the rest of the code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies. WILCO. 👍

Comment on lines 56 to 57
}
else {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
else {
} else {

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use a different code style.

}
#else
double DotProductSSE(const double *u, const double *v, int n) {
TFloat DotProductSSE(const TFloat *u, const TFloat *v, int n) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the double here.

@GerHobbelt
Copy link
Author

@stweil: should conform to #2 (comment) and your comments now. Force-pushed the changes so it stays a single commit, keeping my messing about out of it. 😄

(MSVC editor picked up the editor format file, oddly enough only after restart. Anyway.)

Copy link
Owner

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@stweil stweil merged commit d23ec1d 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