Skip to content

Commit 8358d29

Browse files
authored
Merge pull request #27 from JuliaRandom/patch-uint128
Explicitly extend the `UInt128` constructor. (Fix #26)
2 parents 2de641b + accf16f commit 8358d29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arm/aesni_common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract type ArmVec128 end
1919
unsafe_load(Ptr{T}(pointer_from_objref(Ref(x))))
2020
@inline Base.convert(::Type{T}, x::UInt128) where {T<:ArmVec128} =
2121
unsafe_load(Ptr{T}(pointer_from_objref(Ref(x))))
22-
@inline UInt128(x::ArmVec128) = convert(UInt128, x)
22+
@inline Base.UInt128(x::ArmVec128) = convert(UInt128, x)
2323
@inline (::Type{T})(x::Union{ArmVec128, UInt128}) where {T<:ArmVec128} = convert(T, x)
2424
@inline Base.convert(::Type{T}, x::Union{Signed, Unsigned}) where {T<:ArmVec128} =
2525
convert(T, UInt128(x))

src/x86/aesni_common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct __m128i
1010
end
1111
Base.convert(::Type{__m128i}, x::UInt128) = unsafe_load(Ptr{__m128i}(pointer_from_objref(Ref(x))))
1212
Base.convert(::Type{UInt128}, x::__m128i) = unsafe_load(Ptr{UInt128}(pointer_from_objref(Ref(x))))
13-
UInt128(x::__m128i) = convert(UInt128, x)
13+
Base.UInt128(x::__m128i) = convert(UInt128, x)
1414
__m128i(x::UInt128) = convert(__m128i, x)
1515
Base.convert(::Type{__m128i}, x::Union{Signed, Unsigned}) = convert(__m128i, UInt128(x))
1616
Base.convert(::Type{T}, x::__m128i) where T <: Union{Signed, Unsigned} = convert(T, UInt128(x))

0 commit comments

Comments
 (0)