FixedPointNumbers.jl icon indicating copy to clipboard operation
FixedPointNumbers.jl copied to clipboard

Move arithmetic definitions into a submodule `FixedPointNumbers.FixedPointArithmetic`

Open kimikage opened this issue 4 years ago • 2 comments

cf. https://github.com/JuliaMath/FixedPointNumbers.jl/issues/142#issuecomment-699642981

I will move the definitions of checked_*/saturating_*/wrapping_* to CheckedArithmeticCore.jl and add the implementation for integer types there. (cf. https://github.com/JuliaMath/CheckedArithmetic.jl/issues/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 avatar Dec 23 '20 11:12 kimikage

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

kimikage avatar Apr 05 '24 02:04 kimikage

See: https://github.com/JuliaMath/OverflowContexts.jl/pull/7

kimikage avatar May 13 '24 22:05 kimikage