Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Filters/stream_filt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ function filt!(buffer::AbstractVector{Tb}, self::FIRFilter{FIRRational{Th}}, x::
bufIdx += 1

if inputIdx < kernel.tapsPerϕ
accumulator = unsafe_dot(kernel.pfb, kernel.ϕIdx, history, x, inputIdx)
accumulator = @inline unsafe_dot(kernel.pfb, kernel.ϕIdx, history, x, inputIdx)
else
accumulator = unsafe_dot(kernel.pfb, kernel.ϕIdx, x, inputIdx)
accumulator = @inline unsafe_dot(kernel.pfb, kernel.ϕIdx, x, inputIdx)
end

buffer[bufIdx] = accumulator
Expand Down
2 changes: 1 addition & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ end
function unsafe_dot(a::AbstractMatrix, aColIdx::Integer, b::AbstractVector, bLastIdx::Integer)
aLen = size(a, 1)
bBaseIdx = bLastIdx - aLen
dotprod = a[1, aColIdx] * b[ bBaseIdx + 1]
@inbounds dotprod = a[1, aColIdx] * b[ bBaseIdx + 1]
@simd for i in 2:aLen
@inbounds dotprod += a[i, aColIdx] * b[bBaseIdx + i]
end
Expand Down
Loading