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

Constify math descriptors #667

Merged
merged 9 commits into from
Nov 9, 2024
Merged

Constify math descriptors #667

merged 9 commits into from
Nov 9, 2024

Conversation

levitte
Copy link
Collaborator

@levitte levitte commented Sep 17, 2024

Most of all, this adds proper constification to ltc_math_descriptor,
the rest is suffering the consequences.

For TomsFastMath specifically, we add unconsting casts so LTM can be compiled
to TFM versions before it gets properly constified. This is done through a
version checking helper macro that is added in libtom/tomsfastmath#36.
Note that the current TFM release isn't properly constified, but hopefully,
0.14.0 will be.

Copy link
Collaborator Author

@levitte levitte left a comment

Choose a reason for hiding this comment

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

Saw your added changes, @sjaeckel, and approve

@levitte
Copy link
Collaborator Author

levitte commented Nov 8, 2024

This looks ready to merge

@sjaeckel sjaeckel merged commit 5d2b154 into libtom:develop Nov 9, 2024
75 checks passed
@levitte levitte deleted the constify-math branch November 11, 2024 11:14
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.

src of unsigned_read should be const
2 participants