Skip to content

Conversation

@chipbarnaby
Copy link
Contributor

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.

@chipbarnaby chipbarnaby mentioned this pull request Sep 3, 2024
@chipbarnaby chipbarnaby changed the title 32 bit TI (eliminate 32727 record limit) 32 bit TI (eliminate 32767 record limit) Sep 3, 2024
Copy link
Contributor

@nealkruis nealkruis left a 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
Comment on lines 462 to 470
#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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep or remove?

Copy link
Contributor Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep or remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

@nealkruis nealkruis merged commit 935491e into main Sep 4, 2024
@nealkruis nealkruis deleted the TI-32bit branch September 4, 2024 16:58
@nealkruis nealkruis changed the title 32 bit TI (eliminate 32767 record limit) Make TI 32 bit (eliminate 32767 record limit) Sep 4, 2024
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.

3 participants