1 | // Copyright (c) 2019-2022, The rav1e contributors. All rights reserved |
2 | // |
3 | // This source code is subject to the terms of the BSD 2 Clause License and |
4 | // the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
5 | // was not distributed with this source code in the LICENSE file, you can |
6 | // obtain it at www.aomedia.org/license/software. If the Alliance for Open |
7 | // Media Patent License 1.0 was not distributed with this source code in the |
8 | // PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
9 | |
10 | use arg_enum_proc_macro::ArgEnum; |
11 | |
12 | #[derive (Debug, Copy, Clone, PartialEq, Eq, PartialOrd, ArgEnum, Default)] |
13 | pub enum CpuFeatureLevel { |
14 | #[default] |
15 | RUST, |
16 | } |
17 | |
18 | impl CpuFeatureLevel { |
19 | #[cfg (test)] |
20 | #[allow (unused)] |
21 | pub(crate) const fn all() -> &'static [Self] { |
22 | use CpuFeatureLevel::*; |
23 | &[RUST] |
24 | } |
25 | } |
26 | |