-
Notifications
You must be signed in to change notification settings - Fork 8
Make TI 32 bit (eliminate 32767 record limit) #503
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
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.
Looks fine. Just need to clean up temporary code.
src/ancrec.h
Outdated
| #if 0 | ||
| template <class T> void anc<T>::desRecs( TI _mn, TI _n) | ||
| // ?? why isn't basAnc::desRecs sufficient, 5-31-92? | ||
| { | ||
| if (ptr()) // if record memory is allocated | ||
| for (TI i = max(mn,_mn); i <= min(n,_n); i++) // loop allocated record spaces in range given by caller | ||
| desRec(i); // conditionally destroy record in space with record-deriv d'tor ~T. | ||
| } // anc<T>::desRecs | ||
| #endif |
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.
Keep or remove?
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.
Remove
src/ancrec.h
Outdated
|
|
||
| protected: | ||
| void desRecs( TI mn=0, TI n=32767); // ~ all records or range (as b4 freeing block) | ||
| // void desRecs( TI mn=0, TI n=32767); // ~ all records or range (as b4 freeing block) |
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.
Keep or remove?
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.
Remove
Description
Change TI from 16 bit (int16_t) to 32 bit (int32_t). This allows CSE to have more than 32767 records in a given RAT.
No results changes. No documentation changes.
Note: modified code does not detect / handle other memory limits. See issue 502.