1 /* 2 * Copyright (c) 2021 Loongson Technology Corporation Limited 3 * Contributed by Jin Bo <jinbo@loongson.cn> 4 * Contributed by Lu Wang <wanglu@loongson.cn> 5 * 6 * Use of this source code is governed by a BSD-style license 7 * that can be found in the LICENSE file in the root of the source 8 * tree. An additional intellectual property rights grant can be found 9 * in the file PATENTS. All contributing project authors may 10 * be found in the AUTHORS file in the root of the source tree. 11 */ 12 13 #ifndef VPX_VPX_PORTS_LOONGARCH_H_ 14 #define VPX_VPX_PORTS_LOONGARCH_H_ 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 #define HAS_LSX 0x01 21 #define HAS_LASX 0x02 22 23 int loongarch_cpu_caps(void); 24 25 #ifdef __cplusplus 26 } // extern "C" 27 #endif 28 29 #endif // VPX_VPX_PORTS_LOONGARCH_H_ 30