diff options
| author | Michael Forney <mforney@mforney.org> | 2017-10-22 21:00:09 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-10-23 21:43:52 -0700 |
| commit | 8dbc68529b6d8c11d1104bcb7bebcfb64ad51a59 (patch) | |
| tree | 04291c3cb356fcb89965a466cc464bdf238057e5 /probe | |
| parent | 85b2ffe5af809739179eae0061caddc1197759e9 (diff) | |
xz: Probe for architecture-dependent features
Diffstat (limited to 'probe')
| -rw-r--r-- | probe/HAVE_IMMINTRIN_H | 4 | ||||
| -rw-r--r-- | probe/HAVE__MM_MOVEMASK_EPI8 | 6 | ||||
| -rw-r--r-- | probe/gen.lua | 3 |
3 files changed, 13 insertions, 0 deletions
diff --git a/probe/HAVE_IMMINTRIN_H b/probe/HAVE_IMMINTRIN_H new file mode 100644 index 00000000..cab4bd82 --- /dev/null +++ b/probe/HAVE_IMMINTRIN_H @@ -0,0 +1,4 @@ +#include <immintrin.h> +int main(void) { + return 0; +} diff --git a/probe/HAVE__MM_MOVEMASK_EPI8 b/probe/HAVE__MM_MOVEMASK_EPI8 new file mode 100644 index 00000000..8f39b50a --- /dev/null +++ b/probe/HAVE__MM_MOVEMASK_EPI8 @@ -0,0 +1,6 @@ +#include <immintrin.h> +static __m128i x; +int main(void) { + _mm_movemask_epi8(x); + return 0; +} diff --git a/probe/gen.lua b/probe/gen.lua index 641443d1..eebb877f 100644 --- a/probe/gen.lua +++ b/probe/gen.lua @@ -1,3 +1,6 @@ local function probe(var) build('probe', '$outdir/'..var, '$dir/'..var, {var=var}) end + +probe('HAVE_IMMINTRIN_H') +probe('HAVE__MM_MOVEMASK_EPI8') |
