Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 1 | /* |
Krishna Rapaka | 7319db5 | 2021-09-28 20:35:29 -0700 | [diff] [blame] | 2 | * Copyright (c) 2021, Alliance for Open Media. All rights reserved |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 3 | * |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 4 | * This source code is subject to the terms of the BSD 3-Clause Clear License |
| 5 | * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear |
| 6 | * License was not distributed with this source code in the LICENSE file, you |
| 7 | * can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the |
| 8 | * Alliance for Open Media Patent License 1.0 was not distributed with this |
| 9 | * source code in the PATENTS file, you can obtain it at |
| 10 | * aomedia.org/license/patent-license/. |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 11 | */ |
| 12 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 13 | #ifndef AOM_AOM_PORTS_ARM_H_ |
| 14 | #define AOM_AOM_PORTS_ARM_H_ |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 15 | #include <stdlib.h> |
Tom Finegan | 60e653d | 2018-05-22 11:34:58 -0700 | [diff] [blame] | 16 | |
| 17 | #include "config/aom_config.h" |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 18 | |
James Zern | a5d23f5 | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 19 | #ifdef __cplusplus |
| 20 | extern "C" { |
| 21 | #endif |
| 22 | |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 23 | /*ARMv5TE "Enhanced DSP" instructions.*/ |
clang-format | 05ce850 | 2016-08-10 18:23:43 -0700 | [diff] [blame] | 24 | #define HAS_EDSP 0x01 |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 25 | /*ARMv6 "Parallel" or "Media" instructions.*/ |
| 26 | #define HAS_MEDIA 0x02 |
| 27 | /*ARMv7 optional NEON instructions.*/ |
clang-format | 05ce850 | 2016-08-10 18:23:43 -0700 | [diff] [blame] | 28 | #define HAS_NEON 0x04 |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 29 | |
Thomas Daede | 05bb9cc | 2018-09-06 16:43:30 -0700 | [diff] [blame] | 30 | int aom_arm_cpu_caps(void); |
Timothy B. Terriberry | b71962f | 2010-10-20 15:39:11 -0700 | [diff] [blame] | 31 | |
Johann | f6be2f3 | 2014-09-25 09:30:28 -0700 | [diff] [blame] | 32 | // Earlier gcc compilers have issues with some neon intrinsics |
clang-format | 05ce850 | 2016-08-10 18:23:43 -0700 | [diff] [blame] | 33 | #if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 4 && \ |
| 34 | __GNUC_MINOR__ <= 6 |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 35 | #define AOM_INCOMPATIBLE_GCC |
Johann | f6be2f3 | 2014-09-25 09:30:28 -0700 | [diff] [blame] | 36 | #endif |
| 37 | |
James Zern | a5d23f5 | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 38 | #ifdef __cplusplus |
| 39 | } // extern "C" |
| 40 | #endif |
| 41 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 42 | #endif // AOM_AOM_PORTS_ARM_H_ |