Skip to content

Commit

Permalink
add missing file (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdaines authored Feb 6, 2025
1 parent 5961de5 commit d24f478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/SIMDutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ using ...PALEOboxes: @public
@public FP64P2, FP64P4, FP32P4, FP32P8
@public SIMDIter, vgatherind, vscatterind!, vaddind!

import SLEEF_jll
import SIMD
import Preferences

Expand Down Expand Up @@ -281,6 +280,9 @@ const USE_SLEEF = @Preferences.load_preference("USE_SLEEF", false)
@static if USE_SLEEF
@info "$(@__MODULE__) defining Vectorized SIMD functions log, exp, log10 functions from Sleef library $(SLEEF_jll.libsleef)"*
" - to disable Sleef, set USE_SLEEF = false in LocalPreferences.toml and restart your Julia session"

import SLEEF_jll

# exp Sleef Vectorized double/single precision base-e exponential functions functions with 1.0 ULP error bound
sleefexp(v::FP64P4_d) = ccall((:Sleef_expd4_u10, SLEEF_jll.libsleef), FP64P4_d, (FP64P4_d,), v)
Base.exp(v::FP64P4) = SIMD.Vec(sleefexp(v.data))
Expand Down

0 comments on commit d24f478

Please sign in to comment.