diff options
author | Jin Bo <jinbo@loongson.cn> | 2021-07-06 17:18:48 +0800 |
---|---|---|
committer | yuanhecai <yuanhecai@loongson.cn> | 2022-01-28 16:05:51 +0800 |
commit | 479758aeb15c82c8faf6d7a905999c7512284c64 (patch) | |
tree | 4a4de00d15e4eee635acf7cb3ce14bd48e02128b /vpx_ports/loongarch.h | |
parent | f7941622f22215f332e82362e8318ae304e471cf (diff) | |
download | libvpx-479758aeb15c82c8faf6d7a905999c7512284c64.tar libvpx-479758aeb15c82c8faf6d7a905999c7512284c64.tar.gz libvpx-479758aeb15c82c8faf6d7a905999c7512284c64.tar.bz2 libvpx-479758aeb15c82c8faf6d7a905999c7512284c64.zip |
libvpx[loongarch]: Add loongarch support.
LSX and LASX are enabled by default if compiler supports them.
Bug: webm:1754
Change-Id: Ic36b113bc4313c50e9d2bbab91199b3aa46d00dc
Diffstat (limited to 'vpx_ports/loongarch.h')
-rw-r--r-- | vpx_ports/loongarch.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vpx_ports/loongarch.h b/vpx_ports/loongarch.h new file mode 100644 index 000000000..d93ff9f5f --- /dev/null +++ b/vpx_ports/loongarch.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2021 Loongson Technology Corporation Limited + * Contributed by Jin Bo <jinbo@loongson.cn> + * Contributed by Lu Wang <wanglu@loongson.cn> + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + +#ifndef VPX_VPX_PORTS_LOONGARCH_H_ +#define VPX_VPX_PORTS_LOONGARCH_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#define HAS_LSX 0x01 +#define HAS_LASX 0x02 + +int loongarch_cpu_caps(void); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // VPX_VPX_PORTS_LOONGARCH_H_ |