@@ -1055,16 +1055,16 @@ end
10551055
10561056const BitIntegerArray{N} = Union{map (T-> Array{T,N}, BitInteger_types)... } where N
10571057# use memcmp for == on bit integer types
1058- function == (a:: A , b:: A ) where A <: BitIntegerArray
1058+ function == (a:: Arr , b:: Arr ) where Arr <: BitIntegerArray
10591059 size (a) == size (b) && 0 == ccall (
1060- :memcmp , Int32, (Ptr{Void}, Ptr{Void}, UInt), a, b, sizeof (eltype (A )) * length (a))
1060+ :memcmp , Int32, (Ptr{Void}, Ptr{Void}, UInt), a, b, sizeof (eltype (Arr )) * length (a))
10611061end
10621062
10631063# this is ~20% faster than the generic implementation above for very small arrays
1064- function == (a:: A , b:: A ) where A <: BitIntegerArray{1}
1064+ function == (a:: Arr , b:: Arr ) where Arr <: BitIntegerArray{1}
10651065 len = length (a)
10661066 len == length (b) && 0 == ccall (
1067- :memcmp , Int32, (Ptr{Void}, Ptr{Void}, UInt), a, b, sizeof (eltype (A )) * len)
1067+ :memcmp , Int32, (Ptr{Void}, Ptr{Void}, UInt), a, b, sizeof (eltype (Arr )) * len)
10681068end
10691069
10701070function reverse (A:: AbstractVector , s= first (linearindices (A)), n= last (linearindices (A)))
0 commit comments