- Added the
ishalfodd
function. (#59)
- Implement new
hash
behavior on Julia ≥ 1.10. (#55)
- Better support for
Half{T}
whereT
is an integer type that cannot represent the number 2. (#49, #51, #52)
- Fix tests on Julia ≥ 1.8. (#44)
- Added specialized
Base.hastypemax
method because the generic fallback doesn’t work correctly forBigHalfInt
. (#42)
- Compatibility with SaferIntegers v3. (#40)
- Checked arithmetic functions (
Base.checked_add
etc.) now acceptHalfInteger
arguments. AHalfIntegers.checked_twice
is added as well. (#38)
- Added specialized
twice(::Rational)
andtwice(::Type{<:Integer}, ::Rational)
methods for better performance. This also speeds up theHalf{T}(::Rational) where T<:Integer
constructor. (#33)
- Fix
range(start::HalfInteger; stop::HalfInteger, length)
on Julia ≥ 1.7. (#29)
- Fix
range(start::HalfInteger; stop::HalfInteger, length)
. (#28)
-
ispow2
acceptsHalfInteger
arguments on Julia ≥ 1.6. (#26)
- Fix tests on Julia ≥ 1.6. (#25)
- Fix tests on Julia ≥ 1.6. (#23)
- Added a specialized
float(::Type{BigHalfInt})
method for better performance. (#21) - Added specialized
sinc
andcosc
methods for better performance. (#22)
- Added a specialized
round(::Type{<:Integer}, ::HalfInteger, ::typeof(RoundDown))
method for better performance. (#16)
-
onehalf
now accepts abstract types as argument. (#14) - Added a specialized
sincospi
method on Julia ≥ 1.6. (#10) -
onehalf(Complex{T})
now actually returns aComplex{T}
whenT
is an abstract type. (#14)
- Resolved method ambiguities with
Base
. (#9)
- Performance improvements for
Rational
s on Julia ≥ 1.5. (#7)
First stable release.