Skip to content

Commit

Permalink
chore: remove forced inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jul 4, 2024
1 parent 70f28fc commit 2c337ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ function _add_memory(t::Tuple, p)
end
_add_memory(::Nothing, p) = nothing

@inline __add(x, y) = x + y
@inline __add(x::Ptr, ::StaticInt{N}) where {N} = x + N
@inline __add(::StaticInt{N}, y::Ptr) where {N} = y + N
__add(x, y) = x + y
__add(x::Ptr, ::StaticInt{N}) where {N} = x + N
__add(::StaticInt{N}, y::Ptr) where {N} = y + N

@inline __adjoint(x) = x'
@inline __adjoint(x::SVector{N, <:Real}) where {N} = SMatrix{1, N, eltype(x)}(x.data)
__adjoint(x) = x'
__adjoint(x::SVector{N, <:Real}) where {N} = SMatrix{1, N, eltype(x)}(x.data)

0 comments on commit 2c337ea

Please sign in to comment.