Skip to content

Circular buffer fixes #194

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

Closed
wants to merge 11 commits into from
Closed

Conversation

brson
Copy link
Contributor

@brson brson commented Jan 10, 2011

This branch adds more tests for the circular buffer runtime class, and makes it work correctly for items that do not have a power of two size. It does this by completely removing the assumption that the buffer is sized to a power of two. I can't say what affect this change has on performance but I figure that's not too important right now.

Some of the intermediate commits are not correct, but they do reflect how I did the work. I can roll them up into a single commit if you want.

@graydon
Copy link
Contributor

graydon commented Jan 10, 2011

Thanks! Integrated.

In the future, it's nice to at least make sure the testsuite passes at each commit-point, just to make bisecting easier. I did not check each of these to be sure of that, but it's a good guideline.

oli-obk added a commit to oli-obk/rust that referenced this pull request Jul 19, 2017
Enable a test that was accidentally left disabled
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
ZuseZ4 referenced this pull request in EnzymeAD/rust Mar 7, 2023
* implemented forward mode visitCastInst
celinval pushed a commit to celinval/rust-dev that referenced this pull request Dec 6, 2024
Towards rust-lang#150 

### Changes
* Added a harness for `is_empty`
* Added a small optimization for `arbitray_cstr`

### Verification Result
```
SUMMARY:
 ** 0 of 193 failed (5 unreachable)

VERIFICATION:- SUCCESSFUL
Verification Time: 51.462265s

Complete - 1 successfully verified harnesses, 0 failures, 1 total.
```
This pull request was closed.
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