Skip to content

Commit

Permalink
Work around invalid SIMD bswap
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage committed Jun 12, 2024
1 parent 1eec9cf commit 9255195
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const julian_to_tiff = Dict(

_bswap(a) = bswap(a)
_bswap(c::Colorant{T, N}) where {T, N} = mapc(bswap, c)
# work around https://github.com/tlnagy/TiffImages.jl/issues/166
_bswap(x::Vec{N, T}) where {N, T<:Union{UInt8, Int8}} = x

function getstream(fmt, io, name)
# adapted from https://github.com/JuliaStats/RDatasets.jl/pull/119/
Expand Down

0 comments on commit 9255195

Please sign in to comment.