Test strcasestr/strchr/strstr under all implementations
[glibc.git] / ports / sysdeps / arm / arm-features.h
blob41befb57f594645624f4b15ba38a3f17c021532b
1 /* Macros to test for CPU features on ARM. Generic ARM version.
2 Copyright (C) 2012 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 #ifndef _ARM_ARM_FEATURES_H
20 #define _ARM_ARM_FEATURES_H 1
22 /* An OS-specific arm-features.h file should define ARM_HAVE_VFP to
23 an appropriate expression for testing at runtime whether the VFP
24 hardware is present. We'll then redefine it to a constant if we
25 know at compile time that we can assume VFP. */
27 #ifndef __SOFTFP__
28 /* The compiler is generating VFP instructions, so we're already
29 assuming the hardware exists. */
30 # undef ARM_HAVE_VFP
31 # define ARM_HAVE_VFP 1
32 #endif
34 /* An OS-specific arm-features.h file may define ARM_ASSUME_NO_IWMMXT
35 to indicate at compile time that iWMMXt hardware is never present
36 at runtime (or that we never care about its state) and so need not
37 be checked for. */
39 #endif /* arm-features.h */