Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / x86_64 / fpu / math-tests-arch.h
blob98f7cf65481fc7975fb5cc07ece6bcc691612ab7
1 /* Runtime architecture check for math tests. x86_64 version.
2 Copyright (C) 2014-2017 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #if defined REQUIRE_AVX
20 # include <init-arch.h>
22 # define INIT_ARCH_EXT
24 # define CHECK_ARCH_EXT \
25 do \
26 { \
27 if (!HAS_ARCH_FEATURE (AVX_Usable)) return; \
28 } \
29 while (0)
31 #elif defined REQUIRE_AVX2
32 # include <init-arch.h>
34 # define INIT_ARCH_EXT
36 # define CHECK_ARCH_EXT \
37 do \
38 { \
39 if (!HAS_ARCH_FEATURE (AVX2_Usable)) return; \
40 } \
41 while (0)
43 #elif defined REQUIRE_AVX512F
44 # include <init-arch.h>
46 # define INIT_ARCH_EXT
48 # define CHECK_ARCH_EXT \
49 do \
50 { \
51 if (!HAS_ARCH_FEATURE (AVX512F_Usable)) return; \
52 } \
53 while (0)
55 #else
56 # include <sysdeps/generic/math-tests-arch.h>
57 #endif