Skip to content

Move arithmetic functions into submodule FixedPointArithmetic#304

Open
kimikage wants to merge 1 commit intoJuliaMath:masterfrom
kimikage:arithmetic_module_re
Open

Move arithmetic functions into submodule FixedPointArithmetic#304
kimikage wants to merge 1 commit intoJuliaMath:masterfrom
kimikage:arithmetic_module_re

Conversation

@kimikage
Copy link
Copy Markdown
Collaborator

This is a reworking of PR #292.
This moves only the definitions, leaving the implementations outside of FixedPointArithmetic.

This also adds new unchecked_* functions. (cf. OverflowContexts.jl)
Currently, unchecked_* falls back to wrapping_*.

This makes wrapping_* and saturating_* functions unexported.
We can use them with

using FixedPointNumbers.FixedPointArithmetic

or

using FixedPointNumbers.Saturating # and so on

@codecov
Copy link
Copy Markdown

codecov bot commented May 28, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.01%. Comparing base (3242f10) to head (929bbf7).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
+ Coverage   96.93%   97.01%   +0.07%     
==========================================
  Files           7        8       +1     
  Lines         784      803      +19     
==========================================
+ Hits          760      779      +19     
  Misses         24       24              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This moves only the definitions, leaving the implementations outside of `FixedPointArithmetic`.
This also adds new `unchecked_*` functions.
Currently, `unchecked_*` falls back to `wrapping_*`.
This makes `wrapping_*` and `saturating_*` functions unexported.
@kimikage kimikage force-pushed the arithmetic_module_re branch from e859466 to 929bbf7 Compare May 28, 2024 05:52
@kimikage kimikage marked this pull request as ready for review May 28, 2024 05:53
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.

1 participant