@@ -31,7 +31,7 @@ function addcounts!(r::AbstractArray, x::AbstractArray{<:Integer}, levels::UnitR
3131 m1 = last (levels)
3232 b = m0 - firstindex (levels) # firstindex(levels) == 1 because levels::UnitRange{<:Integer}
3333
34- @inbounds for xi in x
34+ for xi in x
3535 if m0 <= xi <= m1
3636 r[xi - b] += 1
3737 end
@@ -53,7 +53,7 @@ function addcounts!(r::AbstractArray, x::AbstractArray{<:Integer}, levels::UnitR
5353 m1 = last (levels)
5454 b = m0 - 1
5555
56- @inbounds for i in eachindex (xv, wv)
56+ for i in eachindex (xv, wv)
5757 xi = xv[i]
5858 if m0 <= xi <= m1
5959 r[xi - b] += wv[i]
@@ -287,9 +287,9 @@ function addcounts_dict!(cm::Dict{T}, x) where T
287287 for v in x
288288 index = ht_keyindex2! (cm, v)
289289 if index > 0
290- @inbounds cm. vals[index] += 1
290+ cm. vals[index] += 1
291291 else
292- @inbounds Base. _setindex! (cm, 1 , v, - index)
292+ Base. _setindex! (cm, 1 , v, - index)
293293 end
294294 end
295295 return cm
@@ -323,17 +323,17 @@ end
323323function _addcounts! (:: Type{T} , cm:: Dict{T} , x; alg = :ignored ) where T <: Union{UInt8, UInt16, Int8, Int16}
324324 counts = zeros (Int, 2 ^ (8 sizeof (T)))
325325
326- @inbounds for xi in x
326+ for xi in x
327327 counts[Int (xi) - typemin (T) + 1 ] += 1
328328 end
329329
330330 for (i, c) in zip (typemin (T): typemax (T), counts)
331331 if c != 0
332332 index = ht_keyindex2! (cm, i)
333333 if index > 0
334- @inbounds cm. vals[index] += c
334+ cm. vals[index] += c
335335 else
336- @inbounds Base. _setindex! (cm, c, i, - index)
336+ Base. _setindex! (cm, c, i, - index)
337337 end
338338 end
339339 end
@@ -354,7 +354,7 @@ function _addcounts_radix_sort_loop!(cm::Dict{T}, sx::AbstractVector{T}) where T
354354
355355 # now the data is sorted: can just run through and accumulate values before
356356 # adding into the Dict
357- @inbounds for i in start_i+ 1 : lastindex (sx)
357+ for i in start_i+ 1 : lastindex (sx)
358358 sxi = sx[i]
359359 if ! isequal (last_sx, sxi)
360360 cm[last_sx] = get (cm, last_sx, 0 ) + i - start_i
@@ -397,8 +397,8 @@ function addcounts!(cm::Dict{T}, x::AbstractArray{T}, wv::AbstractVector{W}) whe
397397 z = zero (W)
398398
399399 for i in eachindex (xv, wv)
400- @inbounds xi = xv[i]
401- @inbounds wi = wv[i]
400+ xi = xv[i]
401+ wi = wv[i]
402402 cm[xi] = get (cm, xi, z) + wi
403403 end
404404 return cm
0 commit comments