Next: , Previous: , Up: The Macros  


ax_ext

Synopsis

AX_EXT

Description

Find supported SIMD extensions by requesting cpuid. When an SIMD extension is found, the -m"simdextensionname" is added to SIMD_FLAGS if compiler 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

Source Code

Download the latest version of ax_ext.m4 or browse the macro’s revision history.

License

Copyright © 2007 Christophe Tournayre turn3r@users.sourceforge.net
Copyright © 2013 Michael Petch mpetch@capp-sysware.com

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.