Mercurial > hg > sv-dependency-builds
annotate src/fftw-3.3.5/api/version.c @ 127:7867fa7e1b6b
Current fftw source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:40:26 +0100 |
parents | |
children |
rev | line source |
---|---|
cannam@127 | 1 /* |
cannam@127 | 2 * Copyright (c) 2003, 2007-14 Matteo Frigo |
cannam@127 | 3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology |
cannam@127 | 4 * |
cannam@127 | 5 * This program is free software; you can redistribute it and/or modify |
cannam@127 | 6 * it under the terms of the GNU General Public License as published by |
cannam@127 | 7 * the Free Software Foundation; either version 2 of the License, or |
cannam@127 | 8 * (at your option) any later version. |
cannam@127 | 9 * |
cannam@127 | 10 * This program is distributed in the hope that it will be useful, |
cannam@127 | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
cannam@127 | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
cannam@127 | 13 * GNU General Public License for more details. |
cannam@127 | 14 * |
cannam@127 | 15 * You should have received a copy of the GNU General Public License |
cannam@127 | 16 * along with this program; if not, write to the Free Software |
cannam@127 | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
cannam@127 | 18 * |
cannam@127 | 19 */ |
cannam@127 | 20 |
cannam@127 | 21 |
cannam@127 | 22 #include "api.h" |
cannam@127 | 23 |
cannam@127 | 24 const char X(cc)[] = FFTW_CC; |
cannam@127 | 25 |
cannam@127 | 26 /* fftw <= 3.2.2 had special compiler flags for codelets, which are |
cannam@127 | 27 not used anymore. We keep this variable around because it is part |
cannam@127 | 28 of the ABI */ |
cannam@127 | 29 const char X(codelet_optim)[] = ""; |
cannam@127 | 30 |
cannam@127 | 31 const char X(version)[] = PACKAGE "-" PACKAGE_VERSION |
cannam@127 | 32 |
cannam@127 | 33 #if HAVE_FMA |
cannam@127 | 34 "-fma" |
cannam@127 | 35 #endif |
cannam@127 | 36 |
cannam@127 | 37 #if HAVE_SSE2 |
cannam@127 | 38 "-sse2" |
cannam@127 | 39 #endif |
cannam@127 | 40 |
cannam@127 | 41 /* Earlier versions of FFTW only provided 256-bit AVX, which meant |
cannam@127 | 42 * it was important to also enable sse2 for best performance for |
cannam@127 | 43 * short transforms. Since some programs check for this and warn |
cannam@127 | 44 * the user, we explicitly add avx_128 to the suffix to emphasize |
cannam@127 | 45 * that this version is more capable. |
cannam@127 | 46 */ |
cannam@127 | 47 |
cannam@127 | 48 #if HAVE_AVX |
cannam@127 | 49 "-avx" |
cannam@127 | 50 #endif |
cannam@127 | 51 |
cannam@127 | 52 #if HAVE_AVX_128_FMA |
cannam@127 | 53 "-avx_128_fma" |
cannam@127 | 54 #endif |
cannam@127 | 55 |
cannam@127 | 56 #if HAVE_AVX2 |
cannam@127 | 57 "-avx2-avx2_128" |
cannam@127 | 58 #endif |
cannam@127 | 59 |
cannam@127 | 60 #if HAVE_AVX512 |
cannam@127 | 61 "-avx512" |
cannam@127 | 62 #endif |
cannam@127 | 63 |
cannam@127 | 64 #if HAVE_KCVI |
cannam@127 | 65 "-kcvi" |
cannam@127 | 66 #endif |
cannam@127 | 67 |
cannam@127 | 68 #if HAVE_ALTIVEC |
cannam@127 | 69 "-altivec" |
cannam@127 | 70 #endif |
cannam@127 | 71 |
cannam@127 | 72 #if HAVE_VSX |
cannam@127 | 73 "-vsx" |
cannam@127 | 74 #endif |
cannam@127 | 75 |
cannam@127 | 76 #if HAVE_NEON |
cannam@127 | 77 "-neon" |
cannam@127 | 78 #endif |
cannam@127 | 79 |
cannam@127 | 80 #if defined(HAVE_GENERIC_SIMD128) |
cannam@127 | 81 "-generic_simd128" |
cannam@127 | 82 #endif |
cannam@127 | 83 |
cannam@127 | 84 #if defined(HAVE_GENERIC_SIMD256) |
cannam@127 | 85 "-generic_simd256" |
cannam@127 | 86 #endif |
cannam@127 | 87 |
cannam@127 | 88 ; |