Next: ax_ext_check_header, Previous: ax_expand_prefix, Up: The Macros
AX_EXT
Find supported SIMD extensions by requesting cpuid. When an SIMD extension is found, the -m"simdextensionname" is added to SIMD_FLAGS if compilator supports it. For example, if "sse2" is available, then "-msse2" is added to SIMD_FLAGS.
This macro calls:
AC_SUBST(SIMD_FLAGS)
And defines:
HAVE_MMX / HAVE_SSE / HAVE_SSE2 / HAVE_SSE3 / HAVE_SSSE3 / HAVE_SSE4.1 / HAVE_SSE4.2 / HAVE_AVX
Download the latest version of ax_ext.m4 or browse the macro’s revision history.
Copyright © 2007 Christophe Tournayre turn3r@users.sourceforge.net
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.