-
Notifications
You must be signed in to change notification settings - Fork 466
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
Add BIT support to BITPOS #2170
Conversation
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
For review questions, please refer : #1212 (comment) |
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
This general LGTM. I'm suffering from working overtime today, so I'll take a carefully look tomorrow |
@mapleFU, there is an issue that needs to be discussed : #1212 (comment) Please take a look at it when your free. |
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
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.
So careful test case. Thank you!
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
} | ||
|
||
*pos = util::msb::RawBitpos(reinterpret_cast<const uint8_t *>(string_value.data()) + byte_start, bytes_cnt, bit); | ||
|
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.
Should we check byte_stop here?
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.
Oh, my bad, it handle the case in is_bit_index
Rest LGTM, this part of logic is too tricky, thanks a lot for efforts |
Signed-off-by: Mohammad Shehar Yaar Tausif <[email protected]>
@sheharyaar Would you mind resolve conflict? I edit the |
Will merge it tonight if no negative comments |
Quality Gate passedIssues Measures |
Merged, thanks! |
This pull requests adds BIT support to BITPOS.
Fixes : #1212