-
Notifications
You must be signed in to change notification settings - Fork 0
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
ngx_md5.c from nginx #15
base: master
Are you sure you want to change the base?
Conversation
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.
This is autogenerated code-style review, new suggestions: 5
|
||
#define SET(n) \ | ||
(block[n] = \ | ||
(uint32_t) p[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.
(uint32_t) p[n * 4] | \ | |
(uint32_t) p[(n) * 4] | \ |
This comment was generated with the following checker: ClangTidy
#define SET(n) \ | ||
(block[n] = \ | ||
(uint32_t) p[n * 4] | \ | ||
((uint32_t) p[n * 4 + 1] << 8) | \ |
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.
((uint32_t) p[n * 4 + 1] << 8) | \ | |
((uint32_t) p[(n) * 4 + 1] << 8) | \ |
This comment was generated with the following checker: ClangTidy
(block[n] = \ | ||
(uint32_t) p[n * 4] | \ | ||
((uint32_t) p[n * 4 + 1] << 8) | \ | ||
((uint32_t) p[n * 4 + 2] << 16) | \ |
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.
((uint32_t) p[n * 4 + 2] << 16) | \ | |
((uint32_t) p[(n) * 4 + 2] << 16) | \ |
This comment was generated with the following checker: ClangTidy
(uint32_t) p[n * 4] | \ | ||
((uint32_t) p[n * 4 + 1] << 8) | \ | ||
((uint32_t) p[n * 4 + 2] << 16) | \ | ||
((uint32_t) p[n * 4 + 3] << 24)) |
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.
((uint32_t) p[n * 4 + 3] << 24)) | |
((uint32_t) p[(n) * 4 + 3] << 24)) |
This comment was generated with the following checker: ClangTidy
*/ | ||
|
||
static const u_char * | ||
ngx_md5_body(ngx_md5_t *ctx, const u_char *data, size_t size) |
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.
The function is too long
ngx_md5_body( ngx_md5_t * ctx , const u_char * data , size_t size)
now spans 92 lines.
Corresponding modifications started here.
Keep your functions' length within 50 lines to improve readability.
This comment was generated with the following checker: long_method
src/core/ngx_md5.c from https://github.com/nginx/nginx/blob/c60b61a/src/core/ngx_md5.c