annotate src/fftw-3.3.8/simd-support/kcvi.c @ 82:d0c2a83c1364

Add FFTW 3.3.8 source, and a Linux build
author Chris Cannam
date Tue, 19 Nov 2019 14:52:55 +0000
parents
children
rev   line source
Chris@82 1 /*
Chris@82 2 * Copyright (c) 2003, 2007-11 Matteo Frigo
Chris@82 3 * Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
Chris@82 4 * Copyright (c) 2012-2013 Romain Dolbeau
Chris@82 5 *
Chris@82 6 * Permission is hereby granted, free of charge, to any person obtaining a copy
Chris@82 7 * of this software and associated documentation files (the "Software"), to deal
Chris@82 8 * in the Software without restriction, including without limitation the rights
Chris@82 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Chris@82 10 * copies of the Software, and to permit persons to whom the Software is
Chris@82 11 * furnished to do so, subject to the following conditions:
Chris@82 12 *
Chris@82 13 * The above copyright notice and this permission notice shall be included in
Chris@82 14 * all copies or substantial portions of the Software.
Chris@82 15 *
Chris@82 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Chris@82 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Chris@82 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Chris@82 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Chris@82 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Chris@82 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
Chris@82 22 * THE SOFTWARE.
Chris@82 23 *
Chris@82 24 */
Chris@82 25
Chris@82 26 #include "kernel/ifftw.h"
Chris@82 27
Chris@82 28 #if HAVE_KCVI
Chris@82 29
Chris@82 30 #if defined(__x86_64__) || defined(_M_X64) || defined(_M_AMD64)
Chris@82 31
Chris@82 32 #include "amd64-cpuid.h"
Chris@82 33
Chris@82 34 int X(have_simd_kcvi)(void)
Chris@82 35 {
Chris@82 36 static int init = 0, res;
Chris@82 37 if (!init) {
Chris@82 38 res = 1;
Chris@82 39 init = 1;
Chris@82 40 }
Chris@82 41 return res;
Chris@82 42 }
Chris@82 43
Chris@82 44 #else /* 32-bit code */
Chris@82 45
Chris@82 46 #error "KCvi is 64 bits only"
Chris@82 47
Chris@82 48 #endif
Chris@82 49
Chris@82 50 #endif