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

Move arithmetic definitions into a submodule FixedPointNumbers.FixedPointArithmetic #239

Open
kimikage opened this issue Dec 23, 2020 · 2 comments

Comments

@kimikage
Copy link
Collaborator

kimikage commented Dec 23, 2020

cf. #142 (comment)

I will move the definitions of checked_*/saturating_*/wrapping_* to CheckedArithmeticCore.jl and add the implementation for integer types there. (cf. JuliaMath/CheckedArithmetic.jl#9)

In addition to @checked, @wrapping and @saturating macros will be provided by CheckedArithmetic.jl. Those macros should be available for FixedPoint as well.

@kimikage
Copy link
Collaborator Author

kimikage commented Apr 5, 2024

Since we got the package extension mechanism, the new module should be something like FixedPointNumberCheckedArithmeticCoreExt.

@kimikage
Copy link
Collaborator Author

See: JuliaMath/OverflowContexts.jl#7

@kimikage kimikage changed the title Move arithmetic definitions/implementations into a submodule FixedPointNumbers.FixedPointArithmetic Move arithmetic definitions into a submodule FixedPointNumbers.FixedPointArithmetic May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant