Skip to content

Commit 566f3c6

Browse files
authored
Make FFTW flags "public" (#329)
* Make FFTW flags "public" * make all flags public * Limit public to v11 and beyond * Isolate public assertions in public.jl * Use @static and eval
1 parent 03ad4a8 commit 566f3c6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/FFTW.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ import AbstractFFTs: Plan, ScaledPlan,
1414

1515
export dct, idct, dct!, idct!, plan_dct, plan_idct, plan_dct!, plan_idct!
1616

17+
# FFTW flags from fft.jl
18+
@static if VERSION v"1.11.0"
19+
eval(Expr(
20+
:public,
21+
:MEASURE,
22+
:DESTROY_INPUT,
23+
:UNALIGNED,
24+
:CONSERVE_MEMORY,
25+
:EXHAUSTIVE,
26+
:PRESERVE_INPUT,
27+
:PATIENT,
28+
:ESTIMATE,
29+
:WISDOM_ONLY,
30+
:NO_SIMD,
31+
))
32+
end
33+
34+
1735
include("providers.jl")
1836

1937
function fftw_init_check()

0 commit comments

Comments
 (0)