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

Implement BITFIELD #247

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Implement BITFIELD #247

merged 1 commit into from
Oct 18, 2023

Conversation

fcr--
Copy link
Contributor

@fcr-- fcr-- commented Oct 18, 2023

One less command missing 😁

Note: this is not the most optional implementation, as writes are written bit by bit, needing up to 64 writes. However this was done in the name of simplicity, specially considering how messed up is the overflow detection on the original REDIS codebase: https://github.com/redis/redis/blob/unstable/src/bitops.c#L288 (which here is contains a ton of modular arithmetic manipulation in order to make it compatible).

@fcr-- fcr-- requested a review from cunla as a code owner October 18, 2023 03:09
@github-actions github-actions bot added the chore label Oct 18, 2023
@cunla cunla added the enhancement New feature or request label Oct 18, 2023
@cunla cunla merged commit fb1fcf2 into cunla:master Oct 18, 2023
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants