mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
786726719f
Fixed build error hal_rvv_071 #25793 Fixed bug with enabling vector header when vector extension is disabled (RVV=OFF) in hal_rvv_071
22 lines
653 B
C++
22 lines
653 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
|
|
#ifndef OPENCV_HAL_RVV_HPP_INCLUDED
|
|
#define OPENCV_HAL_RVV_HPP_INCLUDED
|
|
|
|
#include "opencv2/core/hal/interface.h"
|
|
|
|
#ifndef CV_HAL_RVV_071_ENABLED
|
|
# if defined(__GNUC__) && __GNUC__ == 10 && __GNUC_MINOR__ == 4 && defined(__THEAD_VERSION__) && defined(__riscv_v) && __riscv_v == 7000
|
|
# define CV_HAL_RVV_071_ENABLED 1
|
|
# else
|
|
# define CV_HAL_RVV_071_ENABLED 0
|
|
# endif
|
|
#endif
|
|
|
|
#if CV_HAL_RVV_071_ENABLED
|
|
#include "version/hal_rvv_071.hpp"
|
|
#endif
|
|
|
|
#endif |