-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
src/arch/dotproductsse.cpp
Outdated
total += u[k] * v[k]; | ||
} | ||
return total; | ||
int max_offset = n - 4; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies. WILCO. 👍
src/arch/dotproductsse.cpp
Outdated
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
else { | |
} else { |
There was a problem hiding this comment.
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.
src/arch/dotproductsse.cpp
Outdated
} | ||
#else | ||
double DotProductSSE(const double *u, const double *v, int n) { | ||
TFloat DotProductSSE(const TFloat *u, const TFloat *v, int n) { |
There was a problem hiding this comment.
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.
a220999
to
29e2379
Compare
@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.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
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