JuliaMath / FixedPointNumbers.jl

fixed point types for julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move arithmetic definitions into a submodule `FixedPointNumbers.FixedPointArithmetic`

kimikage opened this issue · comments

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.

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